Class: AWSCDK::APIGatewayv2Authorizers::HttpJwtAuthorizer
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::APIGatewayv2Authorizers::HttpJwtAuthorizer
- Includes:
- AWSCDK::APIGatewayv2::IHttpRouteAuthorizer
- Defined in:
- api_gatewayv2_authorizers/http_jwt_authorizer.rb
Overview
Authorize Http Api routes on whether the requester is registered as part of an AWS Cognito user pool.
Class Method Summary collapse
Instance Method Summary collapse
-
#authorization_type ⇒ String
The authorizationType used for JWT Authorizer.
-
#authorizer_id ⇒ String
Return the id of the authorizer if it's been constructed.
-
#bind(options) ⇒ AWSCDK::APIGatewayv2::HttpRouteAuthorizerConfig
Bind this authorizer to a specified Http route.
-
#initialize(id, jwt_issuer, props) ⇒ HttpJwtAuthorizer
constructor
Initialize a JWT authorizer to be bound with HTTP route.
Constructor Details
#initialize(id, jwt_issuer, props) ⇒ HttpJwtAuthorizer
Initialize a JWT authorizer to be bound with HTTP route.
14 15 16 17 18 19 20 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer.rb', line 14 def initialize(id, jwt_issuer, props) props = props.is_a?(Hash) ? ::AWSCDK::APIGatewayv2Authorizers::HttpJwtAuthorizerProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(jwt_issuer, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jwtIssuer") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyX2F1dGhvcml6ZXJzLkh0dHBKd3RBdXRob3JpemVyUHJvcHMifQ==")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(id, jwt_issuer, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
22 23 24 25 26 27 28 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer.rb', line 22 def self.jsii_overridable_methods { :authorization_type => { kind: :property, name: "authorizationType", is_optional: false }, :authorizer_id => { kind: :property, name: "authorizerId", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#authorization_type ⇒ String
The authorizationType used for JWT Authorizer.
33 34 35 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer.rb', line 33 def () jsii_get_property("authorizationType") end |
#authorizer_id ⇒ String
Return the id of the authorizer if it's been constructed.
40 41 42 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer.rb', line 40 def () jsii_get_property("authorizerId") end |
#bind(options) ⇒ AWSCDK::APIGatewayv2::HttpRouteAuthorizerConfig
Bind this authorizer to a specified Http route.
48 49 50 51 52 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer.rb', line 48 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 |