io.burkard.cdk.services.opsworks.CfnInstanceProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.opsworks
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnInstanceProps {
def apply(
instanceType: String,
stackId: String,
layerIds: List[String],
ebsOptimized: Option[Boolean] = None,
hostname: Option[String] = None,
installUpdatesOnBoot: Option[Boolean] = None,
availabilityZone: Option[String] = None,
os: Option[String] = None,
sshKeyName: Option[String] = None,
subnetId: Option[String] = None,
architecture: Option[String] = None,
volumes: Option[List[String]] = None,
timeBasedAutoScaling: Option[software.amazon.awscdk.services.opsworks.CfnInstance.TimeBasedAutoScalingProperty] = None,
amiId: Option[String] = None,
tenancy: Option[String] = None,
agentVersion: Option[String] = None,
rootDeviceType: Option[String] = None,
blockDeviceMappings: Option[List[_]] = None,
elasticIps: Option[List[String]] = None,
virtualizationType: Option[String] = None,
autoScalingType: Option[String] = None
): software.amazon.awscdk.services.opsworks.CfnInstanceProps =
(new software.amazon.awscdk.services.opsworks.CfnInstanceProps.Builder)
.instanceType(instanceType)
.stackId(stackId)
.layerIds(layerIds.asJava)
.ebsOptimized(ebsOptimized.map(Boolean.box).orNull)
.hostname(hostname.orNull)
.installUpdatesOnBoot(installUpdatesOnBoot.map(Boolean.box).orNull)
.availabilityZone(availabilityZone.orNull)
.os(os.orNull)
.sshKeyName(sshKeyName.orNull)
.subnetId(subnetId.orNull)
.architecture(architecture.orNull)
.volumes(volumes.map(_.asJava).orNull)
.timeBasedAutoScaling(timeBasedAutoScaling.orNull)
.amiId(amiId.orNull)
.tenancy(tenancy.orNull)
.agentVersion(agentVersion.orNull)
.rootDeviceType(rootDeviceType.orNull)
.blockDeviceMappings(blockDeviceMappings.map(_.asJava).orNull)
.elasticIps(elasticIps.map(_.asJava).orNull)
.virtualizationType(virtualizationType.orNull)
.autoScalingType(autoScalingType.orNull)
.build()
}