All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.apigateway.LambdaAuthorizerProps.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.apigateway

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object LambdaAuthorizerProps {

  def apply(
    handler: software.amazon.awscdk.services.lambda.IFunction,
    authorizerName: Option[String] = None,
    resultsCacheTtl: Option[software.amazon.awscdk.Duration] = None,
    assumeRole: Option[software.amazon.awscdk.services.iam.IRole] = None
  ): software.amazon.awscdk.services.apigateway.LambdaAuthorizerProps =
    (new software.amazon.awscdk.services.apigateway.LambdaAuthorizerProps.Builder)
      .handler(handler)
      .authorizerName(authorizerName.orNull)
      .resultsCacheTtl(resultsCacheTtl.orNull)
      .assumeRole(assumeRole.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy