io.burkard.cdk.services.workspaces.CfnWorkspace.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.workspaces
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnWorkspace {
def apply(
internalResourceId: String,
bundleId: String,
directoryId: String,
userName: String,
volumeEncryptionKey: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
rootVolumeEncryptionEnabled: Option[Boolean] = None,
userVolumeEncryptionEnabled: Option[Boolean] = None,
workspaceProperties: Option[software.amazon.awscdk.services.workspaces.CfnWorkspace.WorkspacePropertiesProperty] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.workspaces.CfnWorkspace =
software.amazon.awscdk.services.workspaces.CfnWorkspace.Builder
.create(stackCtx, internalResourceId)
.bundleId(bundleId)
.directoryId(directoryId)
.userName(userName)
.volumeEncryptionKey(volumeEncryptionKey.orNull)
.tags(tags.map(_.asJava).orNull)
.rootVolumeEncryptionEnabled(rootVolumeEncryptionEnabled.map(Boolean.box).orNull)
.userVolumeEncryptionEnabled(userVolumeEncryptionEnabled.map(Boolean.box).orNull)
.workspaceProperties(workspaceProperties.orNull)
.build()
}