io.burkard.cdk.services.lambda.CfnEventSourceMappingProps.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 CfnEventSourceMappingProps {
def apply(
functionName: String,
filterCriteria: Option[software.amazon.awscdk.services.lambda.CfnEventSourceMapping.FilterCriteriaProperty] = None,
topics: Option[List[String]] = None,
selfManagedEventSource: Option[software.amazon.awscdk.services.lambda.CfnEventSourceMapping.SelfManagedEventSourceProperty] = None,
batchSize: Option[Number] = None,
maximumRecordAgeInSeconds: Option[Number] = None,
parallelizationFactor: Option[Number] = None,
maximumBatchingWindowInSeconds: Option[Number] = None,
enabled: Option[Boolean] = None,
sourceAccessConfigurations: Option[List[_]] = None,
queues: Option[List[String]] = None,
eventSourceArn: Option[String] = None,
startingPosition: Option[String] = None,
destinationConfig: Option[software.amazon.awscdk.services.lambda.CfnEventSourceMapping.DestinationConfigProperty] = None,
tumblingWindowInSeconds: Option[Number] = None,
bisectBatchOnFunctionError: Option[Boolean] = None,
startingPositionTimestamp: Option[Number] = None,
functionResponseTypes: Option[List[String]] = None,
maximumRetryAttempts: Option[Number] = None
): software.amazon.awscdk.services.lambda.CfnEventSourceMappingProps =
(new software.amazon.awscdk.services.lambda.CfnEventSourceMappingProps.Builder)
.functionName(functionName)
.filterCriteria(filterCriteria.orNull)
.topics(topics.map(_.asJava).orNull)
.selfManagedEventSource(selfManagedEventSource.orNull)
.batchSize(batchSize.orNull)
.maximumRecordAgeInSeconds(maximumRecordAgeInSeconds.orNull)
.parallelizationFactor(parallelizationFactor.orNull)
.maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds.orNull)
.enabled(enabled.map(Boolean.box).orNull)
.sourceAccessConfigurations(sourceAccessConfigurations.map(_.asJava).orNull)
.queues(queues.map(_.asJava).orNull)
.eventSourceArn(eventSourceArn.orNull)
.startingPosition(startingPosition.orNull)
.destinationConfig(destinationConfig.orNull)
.tumblingWindowInSeconds(tumblingWindowInSeconds.orNull)
.bisectBatchOnFunctionError(bisectBatchOnFunctionError.map(Boolean.box).orNull)
.startingPositionTimestamp(startingPositionTimestamp.orNull)
.functionResponseTypes(functionResponseTypes.map(_.asJava).orNull)
.maximumRetryAttempts(maximumRetryAttempts.orNull)
.build()
}