Module: AWSCDK::APIGatewayv2::IHttpRouteAuthorizer

Overview

An authorizer that can attach to an Http Route.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



17
18
19
20
21
# File 'api_gatewayv2/i_http_route_authorizer.rb', line 17

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(options) ⇒ AWSCDK::APIGatewayv2::HttpRouteAuthorizerConfig

Bind this authorizer to a specified Http route.



11
12
13
14
15
# File 'api_gatewayv2/i_http_route_authorizer.rb', line 11

def bind(options)
  options = options.is_a?(Hash) ? ::AWSCDK::APIGatewayv2::HttpRouteAuthorizerBindOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBSb3V0ZUF1dGhvcml6ZXJCaW5kT3B0aW9ucyJ9")), "options")
  jsii_call_method("bind", [options])
end