io.burkard.cdk.services.transfer.CfnUserProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.transfer
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnUserProps {
def apply(
role: String,
serverId: String,
userName: String,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
posixProfile: Option[software.amazon.awscdk.services.transfer.CfnUser.PosixProfileProperty] = None,
homeDirectory: Option[String] = None,
homeDirectoryMappings: Option[List[_]] = None,
sshPublicKeys: Option[List[String]] = None,
policy: Option[String] = None,
homeDirectoryType: Option[String] = None
): software.amazon.awscdk.services.transfer.CfnUserProps =
(new software.amazon.awscdk.services.transfer.CfnUserProps.Builder)
.role(role)
.serverId(serverId)
.userName(userName)
.tags(tags.map(_.asJava).orNull)
.posixProfile(posixProfile.orNull)
.homeDirectory(homeDirectory.orNull)
.homeDirectoryMappings(homeDirectoryMappings.map(_.asJava).orNull)
.sshPublicKeys(sshPublicKeys.map(_.asJava).orNull)
.policy(policy.orNull)
.homeDirectoryType(homeDirectoryType.orNull)
.build()
}