io.burkard.cdk.services.lambda.SelfManagedKafkaEventSourceProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.lambda
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SelfManagedKafkaEventSourceProps {
def apply(
bootstrapServers: List[String],
secret: Option[software.amazon.awscdk.services.secretsmanager.ISecret] = None,
authenticationMethod: Option[software.amazon.awscdk.services.lambda.eventsources.AuthenticationMethod] = 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,
vpcSubnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
maxBatchingWindow: Option[software.amazon.awscdk.Duration] = None,
vpc: Option[software.amazon.awscdk.services.ec2.IVpc] = 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,
securityGroup: Option[software.amazon.awscdk.services.ec2.ISecurityGroup] = None
): software.amazon.awscdk.services.lambda.eventsources.SelfManagedKafkaEventSourceProps =
(new software.amazon.awscdk.services.lambda.eventsources.SelfManagedKafkaEventSourceProps.Builder)
.bootstrapServers(bootstrapServers.asJava)
.secret(secret.orNull)
.authenticationMethod(authenticationMethod.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))
.vpcSubnets(vpcSubnets.orNull)
.maxBatchingWindow(maxBatchingWindow.orNull)
.vpc(vpc.orNull)
.reportBatchItemFailures(reportBatchItemFailures.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.startingPosition(startingPosition.orNull)
.topic(topic.orNull)
.retryAttempts(retryAttempts.orNull)
.onFailure(onFailure.orNull)
.securityGroup(securityGroup.orNull)
.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy