io.burkard.cdk.services.lambda.EventInvokeConfigProps.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 EventInvokeConfigProps {
def apply(
function: software.amazon.awscdk.services.lambda.IFunction,
qualifier: Option[String] = None,
maxEventAge: Option[software.amazon.awscdk.Duration] = None,
onSuccess: Option[software.amazon.awscdk.services.lambda.IDestination] = None,
retryAttempts: Option[Number] = None,
onFailure: Option[software.amazon.awscdk.services.lambda.IDestination] = None
): software.amazon.awscdk.services.lambda.EventInvokeConfigProps =
(new software.amazon.awscdk.services.lambda.EventInvokeConfigProps.Builder)
.function(function)
.qualifier(qualifier.orNull)
.maxEventAge(maxEventAge.orNull)
.onSuccess(onSuccess.orNull)
.retryAttempts(retryAttempts.orNull)
.onFailure(onFailure.orNull)
.build()
}