Class: AWSCDK::Lambda::KafkaSchemaRegistryAccessConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::KafkaSchemaRegistryAccessConfig
- Defined in:
- lambda/kafka_schema_registry_access_config.rb
Overview
Specific access configuration settings that tell Lambda how to authenticate with your schema registry.
If you're working with an AWS Glue schema registry, don't provide authentication details in this object. Instead, ensure that your execution role has the required permissions for Lambda to access your cluster.
If you're working with a Confluent schema registry, choose the authentication method in the Type field, and provide the AWS Secrets Manager secret ARN in the URI field.
Instance Attribute Summary collapse
-
#type ⇒ AWSCDK::Lambda::KafkaSchemaRegistryAccessConfigType
readonly
The type of authentication Lambda uses to access your schema registry.
-
#uri ⇒ String
readonly
The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, uri:) ⇒ KafkaSchemaRegistryAccessConfig
constructor
A new instance of KafkaSchemaRegistryAccessConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, uri:) ⇒ KafkaSchemaRegistryAccessConfig
Returns a new instance of KafkaSchemaRegistryAccessConfig.
13 14 15 16 17 18 |
# File 'lambda/kafka_schema_registry_access_config.rb', line 13 def initialize(type:, uri:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLkthZmthU2NoZW1hUmVnaXN0cnlBY2Nlc3NDb25maWdUeXBlIn0=")), "type") @uri = uri Jsii::Type.check_type(@uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "uri") end |
Instance Attribute Details
#type ⇒ AWSCDK::Lambda::KafkaSchemaRegistryAccessConfigType (readonly)
The type of authentication Lambda uses to access your schema registry.
23 24 25 |
# File 'lambda/kafka_schema_registry_access_config.rb', line 23 def type @type end |
#uri ⇒ String (readonly)
The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry.
28 29 30 |
# File 'lambda/kafka_schema_registry_access_config.rb', line 28 def uri @uri end |
Class Method Details
.jsii_properties ⇒ Object
30 31 32 33 34 35 |
# File 'lambda/kafka_schema_registry_access_config.rb', line 30 def self.jsii_properties { :type => "type", :uri => "uri", } end |
Instance Method Details
#to_jsii ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lambda/kafka_schema_registry_access_config.rb', line 37 def to_jsii result = {} result.merge!({ "type" => @type, "uri" => @uri, }) result.compact end |