io.burkard.cdk.services.lambda.destinations.LambdaDestination.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.lambda.destinations
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object LambdaDestination {
def apply(
fn: software.amazon.awscdk.services.lambda.IFunction,
responseOnly: Option[Boolean] = None
): software.amazon.awscdk.services.lambda.destinations.LambdaDestination =
software.amazon.awscdk.services.lambda.destinations.LambdaDestination.Builder
.create(fn)
.responseOnly(responseOnly.map(Boolean.box).orNull)
.build()
}