io.burkard.cdk.services.glue.PrincipalPrivilegesProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.glue
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object PrincipalPrivilegesProperty {
def apply(
permissions: Option[List[String]] = None,
principal: Option[software.amazon.awscdk.services.glue.CfnDatabase.DataLakePrincipalProperty] = None
): software.amazon.awscdk.services.glue.CfnDatabase.PrincipalPrivilegesProperty =
(new software.amazon.awscdk.services.glue.CfnDatabase.PrincipalPrivilegesProperty.Builder)
.permissions(permissions.map(_.asJava).orNull)
.principal(principal.orNull)
.build()
}