io.burkard.cdk.services.lambda.ManagedKafkaEventSource.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.lambda
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ManagedKafkaEventSource {
def apply(
clusterArn: String,
secret: Option[software.amazon.awscdk.services.secretsmanager.ISecret] = None,
batchSize: Option[Number] = None,
parallelizationFactor: Option[Number] = None,
enabled: Option[Boolean] = None,
tumblingWindow: Option[software.amazon.awscdk.Duration] = None,
maxRecordAge: Option[software.amazon.awscdk.Duration] = None,
bisectBatchOnError: Option[Boolean] = None,
maxBatchingWindow: Option[software.amazon.awscdk.Duration] = None,
reportBatchItemFailures: Option[Boolean] = None,
startingPosition: Option[software.amazon.awscdk.services.lambda.StartingPosition] = None,
topic: Option[String] = None,
retryAttempts: Option[Number] = None,
onFailure: Option[software.amazon.awscdk.services.lambda.IEventSourceDlq] = None
): software.amazon.awscdk.services.lambda.eventsources.ManagedKafkaEventSource =
software.amazon.awscdk.services.lambda.eventsources.ManagedKafkaEventSource.Builder
.create()
.clusterArn(clusterArn)
.secret(secret.orNull)
.batchSize(batchSize.orNull)
.parallelizationFactor(parallelizationFactor.orNull)
.enabled(enabled.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.tumblingWindow(tumblingWindow.orNull)
.maxRecordAge(maxRecordAge.orNull)
.bisectBatchOnError(bisectBatchOnError.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.maxBatchingWindow(maxBatchingWindow.orNull)
.reportBatchItemFailures(reportBatchItemFailures.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.startingPosition(startingPosition.orNull)
.topic(topic.orNull)
.retryAttempts(retryAttempts.orNull)
.onFailure(onFailure.orNull)
.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy