Class: AWSCDK::APIGatewayv2Authorizers::WebSocketIAMAuthorizer
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::APIGatewayv2Authorizers::WebSocketIAMAuthorizer
- Includes:
- AWSCDK::APIGatewayv2::IWebSocketRouteAuthorizer
- Defined in:
- api_gatewayv2_authorizers/web_socket_iam_authorizer.rb
Overview
Authorize WebSocket API Routes with IAM.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_options) ⇒ AWSCDK::APIGatewayv2::WebSocketRouteAuthorizerConfig
Bind this authorizer to a specified WebSocket route.
-
#initialize ⇒ WebSocketIAMAuthorizer
constructor
A new instance of WebSocketIAMAuthorizer.
Constructor Details
#initialize ⇒ WebSocketIAMAuthorizer
Returns a new instance of WebSocketIAMAuthorizer.
9 10 11 |
# File 'api_gatewayv2_authorizers/web_socket_iam_authorizer.rb', line 9 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.jsii_overridable_methods ⇒ Object
13 14 15 16 17 |
# File 'api_gatewayv2_authorizers/web_socket_iam_authorizer.rb', line 13 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(_options) ⇒ AWSCDK::APIGatewayv2::WebSocketRouteAuthorizerConfig
Bind this authorizer to a specified WebSocket route.
23 24 25 26 27 |
# File 'api_gatewayv2_authorizers/web_socket_iam_authorizer.rb', line 23 def bind() = .is_a?(Hash) ? ::AWSCDK::APIGatewayv2::WebSocketRouteAuthorizerBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLldlYlNvY2tldFJvdXRlQXV0aG9yaXplckJpbmRPcHRpb25zIn0=")), "_options") jsii_call_method("bind", []) end |