# SelfManagedKafkaEventSourceConfigProperty

Specific configuration settings for a self-managed Apache Kafka event source.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## 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';
const selfManagedKafkaEventSourceConfigProperty: lambda.CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty = {
  consumerGroupId: 'consumerGroupId',
  consumptionMode: 'consumptionMode',
  schemaRegistryConfig: {
    accessConfigs: [{
      type: 'type',
      uri: 'uri',
    }],
    eventRecordFormat: 'eventRecordFormat',
    schemaRegistryUri: 'schemaRegistryUri',
    schemaValidationConfigs: [{
      attribute: 'attribute',
    }],
  },
};
```

## Properties

- `consumerGroupId`: string — The identifier for the Kafka consumer group to join.

  The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see [Customizable consumer group ID](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka-process.html#services-smaa-topic-add) .

- `consumptionMode`: string — The mode that determines how Lambda reads from a Kafka topic.

  Use Stream for ordered processing or Queue for higher throughput when ordering is not required.

- `schemaRegistryConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventSourceMapping.SchemaRegistryConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnEventSourceMapping.SchemaRegistryConfigProperty.html) — Specific configuration settings for a Kafka schema registry.
