io.burkard.cdk.services.sam.cfnApi.AuthProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.sam.cfnApi
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object AuthProperty {
def apply(
authorizers: Option[AnyRef] = None,
defaultAuthorizer: Option[String] = None,
addDefaultAuthorizerToCorsPreflight: Option[Boolean] = None
): software.amazon.awscdk.services.sam.CfnApi.AuthProperty =
(new software.amazon.awscdk.services.sam.CfnApi.AuthProperty.Builder)
.authorizers(authorizers.orNull)
.defaultAuthorizer(defaultAuthorizer.orNull)
.addDefaultAuthorizerToCorsPreflight(addDefaultAuthorizerToCorsPreflight.map(Boolean.box).orNull)
.build()
}