Class: AWSCDK::APIGatewayv2::HttpRouteIntegrationBindOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::HttpRouteIntegrationBindOptions
- Defined in:
- api_gatewayv2/http_route_integration_bind_options.rb
Overview
Options to the HttpRouteIntegration during its bind operation.
Instance Attribute Summary collapse
-
#route ⇒ AWSCDK::APIGatewayv2::IHttpRoute
readonly
The route to which this is being bound.
-
#scope ⇒ Constructs::Construct
readonly
The current scope in which the bind is occurring.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route:, scope:) ⇒ HttpRouteIntegrationBindOptions
constructor
A new instance of HttpRouteIntegrationBindOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route:, scope:) ⇒ HttpRouteIntegrationBindOptions
Returns a new instance of HttpRouteIntegrationBindOptions.
9 10 11 12 13 14 |
# File 'api_gatewayv2/http_route_integration_bind_options.rb', line 9 def initialize(route:, scope:) @route = route Jsii::Type.check_type(@route, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLklIdHRwUm91dGUifQ==")), "route") @scope = scope Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") end |
Instance Attribute Details
#route ⇒ AWSCDK::APIGatewayv2::IHttpRoute (readonly)
The route to which this is being bound.
19 20 21 |
# File 'api_gatewayv2/http_route_integration_bind_options.rb', line 19 def route @route end |
#scope ⇒ Constructs::Construct (readonly)
The current scope in which the bind is occurring.
If the HttpRouteIntegration being bound creates additional constructs,
this will be used as their parent scope.
26 27 28 |
# File 'api_gatewayv2/http_route_integration_bind_options.rb', line 26 def scope @scope end |
Class Method Details
.jsii_properties ⇒ Object
28 29 30 31 32 33 |
# File 'api_gatewayv2/http_route_integration_bind_options.rb', line 28 def self.jsii_properties { :route => "route", :scope => "scope", } end |
Instance Method Details
#to_jsii ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'api_gatewayv2/http_route_integration_bind_options.rb', line 35 def to_jsii result = {} result.merge!({ "route" => @route, "scope" => @scope, }) result.compact end |