io.burkard.cdk.services.autoscaling.cfnLaunchConfiguration.BlockDeviceMappingProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.autoscaling.cfnLaunchConfiguration
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object BlockDeviceMappingProperty {
def apply(
deviceName: String,
ebs: Option[software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.BlockDeviceProperty] = None,
virtualName: Option[String] = None,
noDevice: Option[Boolean] = None
): software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.BlockDeviceMappingProperty =
(new software.amazon.awscdk.services.autoscaling.CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder)
.deviceName(deviceName)
.ebs(ebs.orNull)
.virtualName(virtualName.orNull)
.noDevice(noDevice.map(Boolean.box).orNull)
.build()
}