Class SelfManagedKafkaEventSourceConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SelfManagedKafkaEventSourceConfig.Builder,SelfManagedKafkaEventSourceConfig>
Specific configuration settings for a self-managed Apache Kafka event source.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe identifier for the Kafka consumer group to join.The mode that Lambda uses to consume records from your self-managed Apache Kafka topic.final StringThe mode that Lambda uses to consume records from your self-managed Apache Kafka topic.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()Specific configuration settings for a Kafka schema registry.static Class<? extends SelfManagedKafkaEventSourceConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
- Returns:
- 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.
-
schemaRegistryConfig
Specific configuration settings for a Kafka schema registry.
- Returns:
- Specific configuration settings for a Kafka schema registry.
-
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.If the service returns an enum value that is not available in the current SDK version,
consumptionModewill returnKafkaEventSourceMappingConsumptionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconsumptionModeAsString().- Returns:
- 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. -
- See Also:
-
-
consumptionModeAsString
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.If the service returns an enum value that is not available in the current SDK version,
consumptionModewill returnKafkaEventSourceMappingConsumptionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconsumptionModeAsString().- Returns:
- 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. -
- See Also:
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SelfManagedKafkaEventSourceConfig.Builder,SelfManagedKafkaEventSourceConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-