Interface SelfManagedKafkaEventSourceConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SelfManagedKafkaEventSourceConfig.Builder,,SelfManagedKafkaEventSourceConfig> SdkBuilder<SelfManagedKafkaEventSourceConfig.Builder,,SelfManagedKafkaEventSourceConfig> SdkPojo
- Enclosing class:
SelfManagedKafkaEventSourceConfig
-
Method Summary
Modifier and TypeMethodDescriptionconsumerGroupId(String consumerGroupId) The identifier for the Kafka consumer group to join.consumptionMode(String consumptionMode) The mode that Lambda uses to consume records from your self-managed Apache Kafka topic.consumptionMode(KafkaEventSourceMappingConsumptionMode consumptionMode) The mode that Lambda uses to consume records from your self-managed Apache Kafka topic.schemaRegistryConfig(Consumer<KafkaSchemaRegistryConfig.Builder> schemaRegistryConfig) Specific configuration settings for a Kafka schema registry.schemaRegistryConfig(KafkaSchemaRegistryConfig schemaRegistryConfig) Specific configuration settings for a Kafka schema registry.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
consumerGroupId
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.
- Parameters:
consumerGroupId- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaRegistryConfig
SelfManagedKafkaEventSourceConfig.Builder schemaRegistryConfig(KafkaSchemaRegistryConfig schemaRegistryConfig) Specific configuration settings for a Kafka schema registry.
- Parameters:
schemaRegistryConfig- Specific configuration settings for a Kafka schema registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaRegistryConfig
default SelfManagedKafkaEventSourceConfig.Builder schemaRegistryConfig(Consumer<KafkaSchemaRegistryConfig.Builder> schemaRegistryConfig) Specific configuration settings for a Kafka schema registry.
This is a convenience method that creates an instance of theKafkaSchemaRegistryConfig.Builderavoiding the need to create one manually viaKafkaSchemaRegistryConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschemaRegistryConfig(KafkaSchemaRegistryConfig).- Parameters:
schemaRegistryConfig- a consumer that will call methods onKafkaSchemaRegistryConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
consumptionMode
The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. Valid values are the following:
-
Stream(default) – Lambda consumes records using a Kafka consumer group and preserves the order of records within each partition. -
Queue– Lambda consumes records using a Kafka share group. Multiple consumers can process records from the same partition concurrently, so Lambda doesn't preserve per-partition order. To use Queue mode, your cluster must run Apache Kafka version 4.2 or later with share groups enabled.
If you omit this parameter, Lambda uses
Stream.You cannot change
ConsumptionModeafter you create the event source mapping. To use a different consumption mode, create a new event source mapping.When
ConsumptionModeisQueue, theStartingPosition,StartingPositionTimestamp, andMaximumBatchingWindowInSecondsparameters are not supported.- Parameters:
consumptionMode- The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. Valid values are the following:-
Stream(default) – Lambda consumes records using a Kafka consumer group and preserves the order of records within each partition. -
Queue– Lambda consumes records using a Kafka share group. Multiple consumers can process records from the same partition concurrently, so Lambda doesn't preserve per-partition order. To use Queue mode, your cluster must run Apache Kafka version 4.2 or later with share groups enabled.
If you omit this parameter, Lambda uses
Stream.You cannot change
ConsumptionModeafter you create the event source mapping. To use a different consumption mode, create a new event source mapping.When
ConsumptionModeisQueue, theStartingPosition,StartingPositionTimestamp, andMaximumBatchingWindowInSecondsparameters are not supported.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
consumptionMode
SelfManagedKafkaEventSourceConfig.Builder consumptionMode(KafkaEventSourceMappingConsumptionMode consumptionMode) The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. Valid values are the following:
-
Stream(default) – Lambda consumes records using a Kafka consumer group and preserves the order of records within each partition. -
Queue– Lambda consumes records using a Kafka share group. Multiple consumers can process records from the same partition concurrently, so Lambda doesn't preserve per-partition order. To use Queue mode, your cluster must run Apache Kafka version 4.2 or later with share groups enabled.
If you omit this parameter, Lambda uses
Stream.You cannot change
ConsumptionModeafter you create the event source mapping. To use a different consumption mode, create a new event source mapping.When
ConsumptionModeisQueue, theStartingPosition,StartingPositionTimestamp, andMaximumBatchingWindowInSecondsparameters are not supported.- Parameters:
consumptionMode- The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. Valid values are the following:-
Stream(default) – Lambda consumes records using a Kafka consumer group and preserves the order of records within each partition. -
Queue– Lambda consumes records using a Kafka share group. Multiple consumers can process records from the same partition concurrently, so Lambda doesn't preserve per-partition order. To use Queue mode, your cluster must run Apache Kafka version 4.2 or later with share groups enabled.
If you omit this parameter, Lambda uses
Stream.You cannot change
ConsumptionModeafter you create the event source mapping. To use a different consumption mode, create a new event source mapping.When
ConsumptionModeisQueue, theStartingPosition,StartingPositionTimestamp, andMaximumBatchingWindowInSecondsparameters are not supported.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-