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