Class: AWSCDK::Lambda::CfnEventSourceMapping::SchemaRegistryAccessConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_event_source_mapping.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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil, uri: nil) ⇒ SchemaRegistryAccessConfigProperty

Returns a new instance of SchemaRegistryAccessConfigProperty.

Parameters:

  • type (String, nil) (defaults to: nil)

    The type of authentication Lambda uses to access your schema registry.

  • uri (String, nil) (defaults to: nil)

    The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry.



1352
1353
1354
1355
1356
1357
# File 'lambda/cfn_event_source_mapping.rb', line 1352

def initialize(type: nil, uri: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
  @uri = uri
  Jsii::Type.check_type(@uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "uri") unless @uri.nil?
end

Instance Attribute Details

#typeString? (readonly)

The type of authentication Lambda uses to access your schema registry.



1363
1364
1365
# File 'lambda/cfn_event_source_mapping.rb', line 1363

def type
  @type
end

#uriString? (readonly)

The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry.



1368
1369
1370
# File 'lambda/cfn_event_source_mapping.rb', line 1368

def uri
  @uri
end

Class Method Details

.jsii_propertiesObject



1370
1371
1372
1373
1374
1375
# File 'lambda/cfn_event_source_mapping.rb', line 1370

def self.jsii_properties
  {
    :type => "type",
    :uri => "uri",
  }
end

Instance Method Details

#to_jsiiObject



1377
1378
1379
1380
1381
1382
1383
1384
# File 'lambda/cfn_event_source_mapping.rb', line 1377

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "uri" => @uri,
  })
  result.compact
end