io.burkard.cdk.services.sam.cfnFunction.AuthProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.sam.cfnFunction
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object AuthProperty {
def apply(
authorizer: Option[String] = None,
apiKeyRequired: Option[Boolean] = None,
authorizationScopes: Option[List[String]] = None,
resourcePolicy: Option[software.amazon.awscdk.services.sam.CfnFunction.AuthResourcePolicyProperty] = None
): software.amazon.awscdk.services.sam.CfnFunction.AuthProperty =
(new software.amazon.awscdk.services.sam.CfnFunction.AuthProperty.Builder)
.authorizer(authorizer.orNull)
.apiKeyRequired(apiKeyRequired.map(Boolean.box).orNull)
.authorizationScopes(authorizationScopes.map(_.asJava).orNull)
.resourcePolicy(resourcePolicy.orNull)
.build()
}