io.burkard.cdk.services.lightsail.CfnInstance.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.lightsail
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnInstance {
def apply(
internalResourceId: String,
bundleId: String,
blueprintId: String,
instanceName: String,
addOns: Option[List[_]] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
userData: Option[String] = None,
availabilityZone: Option[String] = None,
networking: Option[software.amazon.awscdk.services.lightsail.CfnInstance.NetworkingProperty] = None,
hardware: Option[software.amazon.awscdk.services.lightsail.CfnInstance.HardwareProperty] = None,
keyPairName: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.lightsail.CfnInstance =
software.amazon.awscdk.services.lightsail.CfnInstance.Builder
.create(stackCtx, internalResourceId)
.bundleId(bundleId)
.blueprintId(blueprintId)
.instanceName(instanceName)
.addOns(addOns.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.userData(userData.orNull)
.availabilityZone(availabilityZone.orNull)
.networking(networking.orNull)
.hardware(hardware.orNull)
.keyPairName(keyPairName.orNull)
.build()
}