Class: AWSCDK::APIGatewayv2::HttpRouteAuthorizerBindOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::HttpRouteAuthorizerBindOptions
- Defined in:
- api_gatewayv2/http_route_authorizer_bind_options.rb
Overview
Input to the bind() operation, that binds an authorizer to a route.
Instance Attribute Summary collapse
-
#route ⇒ AWSCDK::APIGatewayv2::IHttpRoute
readonly
The route to which the authorizer is being bound.
-
#scope ⇒ Constructs::Construct
readonly
The scope for any constructs created as part of the bind.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route:, scope:) ⇒ HttpRouteAuthorizerBindOptions
constructor
A new instance of HttpRouteAuthorizerBindOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route:, scope:) ⇒ HttpRouteAuthorizerBindOptions
Returns a new instance of HttpRouteAuthorizerBindOptions.
9 10 11 12 13 14 |
# File 'api_gatewayv2/http_route_authorizer_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 the authorizer is being bound.
19 20 21 |
# File 'api_gatewayv2/http_route_authorizer_bind_options.rb', line 19 def route @route end |
#scope ⇒ Constructs::Construct (readonly)
The scope for any constructs created as part of the bind.
23 24 25 |
# File 'api_gatewayv2/http_route_authorizer_bind_options.rb', line 23 def scope @scope end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'api_gatewayv2/http_route_authorizer_bind_options.rb', line 25 def self.jsii_properties { :route => "route", :scope => "scope", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'api_gatewayv2/http_route_authorizer_bind_options.rb', line 32 def to_jsii result = {} result.merge!({ "route" => @route, "scope" => @scope, }) result.compact end |