Class: AWSCDK::APIGatewayv2::HttpRouteAuthorizerBindOptions

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route:, scope:) ⇒ HttpRouteAuthorizerBindOptions

Returns a new instance of HttpRouteAuthorizerBindOptions.

Parameters:

  • route (AWSCDK::APIGatewayv2::IHttpRoute)

    The route to which the authorizer is being bound.

  • scope (Constructs::Construct)

    The scope for any constructs created as part of the bind.



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

#routeAWSCDK::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

#scopeConstructs::Construct (readonly)

The scope for any constructs created as part of the bind.

Returns:

  • (Constructs::Construct)


23
24
25
# File 'api_gatewayv2/http_route_authorizer_bind_options.rb', line 23

def scope
  @scope
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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