io.burkard.cdk.services.autoscaling.CfnLaunchConfigurationProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.autoscaling
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnLaunchConfigurationProps {
def apply(
instanceType: String,
imageId: String,
instanceId: Option[String] = None,
ebsOptimized: Option[Boolean] = None,
userData: Option[String] = None,
iamInstanceProfile: Option[String] = None,
classicLinkVpcId: Option[String] = None,
associatePublicIpAddress: Option[Boolean] = None,
metadataOptions: Option[software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.MetadataOptionsProperty] = None,
ramDiskId: Option[String] = None,
classicLinkVpcSecurityGroups: Option[List[String]] = None,
securityGroups: Option[List[String]] = None,
keyName: Option[String] = None,
instanceMonitoring: Option[Boolean] = None,
spotPrice: Option[String] = None,
kernelId: Option[String] = None,
placementTenancy: Option[String] = None,
blockDeviceMappings: Option[List[_]] = None,
launchConfigurationName: Option[String] = None
): software.amazon.awscdk.services.autoscaling.CfnLaunchConfigurationProps =
(new software.amazon.awscdk.services.autoscaling.CfnLaunchConfigurationProps.Builder)
.instanceType(instanceType)
.imageId(imageId)
.instanceId(instanceId.orNull)
.ebsOptimized(ebsOptimized.map(Boolean.box).orNull)
.userData(userData.orNull)
.iamInstanceProfile(iamInstanceProfile.orNull)
.classicLinkVpcId(classicLinkVpcId.orNull)
.associatePublicIpAddress(associatePublicIpAddress.map(Boolean.box).orNull)
.metadataOptions(metadataOptions.orNull)
.ramDiskId(ramDiskId.orNull)
.classicLinkVpcSecurityGroups(classicLinkVpcSecurityGroups.map(_.asJava).orNull)
.securityGroups(securityGroups.map(_.asJava).orNull)
.keyName(keyName.orNull)
.instanceMonitoring(instanceMonitoring.map(Boolean.box).orNull)
.spotPrice(spotPrice.orNull)
.kernelId(kernelId.orNull)
.placementTenancy(placementTenancy.orNull)
.blockDeviceMappings(blockDeviceMappings.map(_.asJava).orNull)
.launchConfigurationName(launchConfigurationName.orNull)
.build()
}