io.burkard.cdk.services.autoscaling.CfnLaunchConfigurationProps.scala Maven / Gradle / Ivy
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(
instanceId: Option[String] = None,
ebsOptimized: Option[Boolean] = None,
userData: Option[String] = None,
iamInstanceProfile: Option[String] = None,
instanceType: Option[String] = None,
imageId: Option[String] = None,
metadataOptions: Option[software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.MetadataOptionsProperty] = None,
ramDiskId: Option[String] = None,
launchConfigurationName: Option[String] = None,
classicLinkVpcId: Option[String] = None,
associatePublicIpAddress: Option[Boolean] = 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
): software.amazon.awscdk.services.autoscaling.CfnLaunchConfigurationProps =
(new software.amazon.awscdk.services.autoscaling.CfnLaunchConfigurationProps.Builder)
.instanceId(instanceId.orNull)
.ebsOptimized(ebsOptimized.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.userData(userData.orNull)
.iamInstanceProfile(iamInstanceProfile.orNull)
.instanceType(instanceType.orNull)
.imageId(imageId.orNull)
.metadataOptions(metadataOptions.orNull)
.ramDiskId(ramDiskId.orNull)
.launchConfigurationName(launchConfigurationName.orNull)
.classicLinkVpcId(classicLinkVpcId.orNull)
.associatePublicIpAddress(associatePublicIpAddress.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.classicLinkVpcSecurityGroups(classicLinkVpcSecurityGroups.map(_.asJava).orNull)
.securityGroups(securityGroups.map(_.asJava).orNull)
.keyName(keyName.orNull)
.instanceMonitoring(instanceMonitoring.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.spotPrice(spotPrice.orNull)
.kernelId(kernelId.orNull)
.placementTenancy(placementTenancy.orNull)
.blockDeviceMappings(blockDeviceMappings.map(_.asJava).orNull)
.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy