Skip to content
v2.277.0

KafkaSchemaRegistryAccessConfig Struct ​

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.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';

declare const kafkaSchemaRegistryAccessConfigType: lambda.KafkaSchemaRegistryAccessConfigType;
const kafkaSchemaRegistryAccessConfig: lambda.KafkaSchemaRegistryAccessConfig = {
  type: kafkaSchemaRegistryAccessConfigType,
  uri: 'uri',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

# kafka_schema_registry_access_config_type: lambda.KafkaSchemaRegistryAccessConfigType

kafka_schema_registry_access_config = lambda.KafkaSchemaRegistryAccessConfig(
    type=kafka_schema_registry_access_config_type,
    uri="uri"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

KafkaSchemaRegistryAccessConfigType kafkaSchemaRegistryAccessConfigType;

KafkaSchemaRegistryAccessConfig kafkaSchemaRegistryAccessConfig = KafkaSchemaRegistryAccessConfig.builder()
        .type(kafkaSchemaRegistryAccessConfigType)
        .uri("uri")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

KafkaSchemaRegistryAccessConfigType kafkaSchemaRegistryAccessConfigType;

var kafkaSchemaRegistryAccessConfig = new KafkaSchemaRegistryAccessConfig {
    Type = kafkaSchemaRegistryAccessConfigType,
    Uri = "uri"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var kafkaSchemaRegistryAccessConfigType KafkaSchemaRegistryAccessConfigType

kafkaSchemaRegistryAccessConfig := &KafkaSchemaRegistryAccessConfig{
	Type: kafkaSchemaRegistryAccessConfigType,
	Uri: jsii.String("uri"),
}

Properties ​

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