Class: AWSCDK::APIGatewayv2Authorizers::HttpIAMAuthorizer
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::APIGatewayv2Authorizers::HttpIAMAuthorizer
- Includes:
- AWSCDK::APIGatewayv2::IHttpRouteAuthorizer
- Defined in:
- api_gatewayv2_authorizers/http_iam_authorizer.rb
Overview
Authorize HTTP API Routes with IAM.
Class Method Summary collapse
Instance Method Summary collapse
-
#authorization_type ⇒ AWSCDK::APIGatewayv2::HttpAuthorizerType
The authorizationType used for IAM Authorizer.
-
#bind(_options) ⇒ AWSCDK::APIGatewayv2::HttpRouteAuthorizerConfig
Bind this authorizer to a specified Http route.
-
#initialize ⇒ HttpIAMAuthorizer
constructor
A new instance of HttpIAMAuthorizer.
Constructor Details
#initialize ⇒ HttpIAMAuthorizer
Returns a new instance of HttpIAMAuthorizer.
9 10 11 |
# File 'api_gatewayv2_authorizers/http_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 18 |
# File 'api_gatewayv2_authorizers/http_iam_authorizer.rb', line 13 def self.jsii_overridable_methods { :authorization_type => { kind: :property, name: "authorizationType", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#authorization_type ⇒ AWSCDK::APIGatewayv2::HttpAuthorizerType
The authorizationType used for IAM Authorizer.
23 24 25 |
# File 'api_gatewayv2_authorizers/http_iam_authorizer.rb', line 23 def () jsii_get_property("authorizationType") end |
#bind(_options) ⇒ AWSCDK::APIGatewayv2::HttpRouteAuthorizerConfig
Bind this authorizer to a specified Http route.
31 32 33 34 35 |
# File 'api_gatewayv2_authorizers/http_iam_authorizer.rb', line 31 def bind() = .is_a?(Hash) ? ::AWSCDK::APIGatewayv2::HttpRouteAuthorizerBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBSb3V0ZUF1dGhvcml6ZXJCaW5kT3B0aW9ucyJ9")), "_options") jsii_call_method("bind", []) end |