io.burkard.cdk.services.ec2.BastionHostLinuxProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object BastionHostLinuxProps {
def apply(
vpc: software.amazon.awscdk.services.ec2.IVpc,
initOptions: Option[software.amazon.awscdk.services.ec2.ApplyCloudFormationInitOptions] = None,
blockDevices: Option[List[_ <: software.amazon.awscdk.services.ec2.BlockDevice]] = None,
machineImage: Option[software.amazon.awscdk.services.ec2.IMachineImage] = None,
availabilityZone: Option[String] = None,
instanceType: Option[software.amazon.awscdk.services.ec2.InstanceType] = None,
subnetSelection: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
requireImdsv2: Option[Boolean] = None,
init: Option[software.amazon.awscdk.services.ec2.CloudFormationInit] = None,
securityGroup: Option[software.amazon.awscdk.services.ec2.ISecurityGroup] = None,
instanceName: Option[String] = None
): software.amazon.awscdk.services.ec2.BastionHostLinuxProps =
(new software.amazon.awscdk.services.ec2.BastionHostLinuxProps.Builder)
.vpc(vpc)
.initOptions(initOptions.orNull)
.blockDevices(blockDevices.map(_.asJava).orNull)
.machineImage(machineImage.orNull)
.availabilityZone(availabilityZone.orNull)
.instanceType(instanceType.orNull)
.subnetSelection(subnetSelection.orNull)
.requireImdsv2(requireImdsv2.map(Boolean.box).orNull)
.init(init.orNull)
.securityGroup(securityGroup.orNull)
.instanceName(instanceName.orNull)
.build()
}