Class: AWSCDK::BedrockAgentCore::CustomJwtAuthorizer

Inherits:
Jsii::Object
  • Object
show all
Includes:
IGatewayAuthorizerConfig
Defined in:
bedrock_agent_core/custom_jwt_authorizer.rb

Overview

Custom JWT authorizer configuration implementation.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ CustomJwtAuthorizer

Returns a new instance of CustomJwtAuthorizer.



10
11
12
13
14
# File 'bedrock_agent_core/custom_jwt_authorizer.rb', line 10

def initialize(config)
  config = config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CustomJwtConfiguration.new(**config.transform_keys(&:to_sym)) : config
  Jsii::Type.check_type(config, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DdXN0b21Kd3RDb25maWd1cmF0aW9uIn0=")), "config")
  Jsii::Object.instance_method(:initialize).bind(self).call(config)
end

Class Method Details

.jsii_overridable_methodsObject



16
17
18
19
20
# File 'bedrock_agent_core/custom_jwt_authorizer.rb', line 16

def self.jsii_overridable_methods
  {
    :authorizer_type => { kind: :property, name: "authorizerType", is_optional: false },
  }
end

Instance Method Details

#authorizer_typeAWSCDK::BedrockAgentCore::GatewayAuthorizerType

The authorizer type.



25
26
27
# File 'bedrock_agent_core/custom_jwt_authorizer.rb', line 25

def authorizer_type()
  jsii_get_property("authorizerType")
end