io.burkard.cdk.services.ec2.EbsDeviceProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object EbsDeviceProps {
def apply(
kmsKey: Option[software.amazon.awscdk.services.kms.IKey] = None,
volumeType: Option[software.amazon.awscdk.services.ec2.EbsDeviceVolumeType] = None,
encrypted: Option[Boolean] = None,
iops: Option[Number] = None,
deleteOnTermination: Option[Boolean] = None,
volumeSize: Option[Number] = None,
snapshotId: Option[String] = None
): software.amazon.awscdk.services.ec2.EbsDeviceProps =
(new software.amazon.awscdk.services.ec2.EbsDeviceProps.Builder)
.kmsKey(kmsKey.orNull)
.volumeType(volumeType.orNull)
.encrypted(encrypted.map(Boolean.box).orNull)
.iops(iops.orNull)
.deleteOnTermination(deleteOnTermination.map(Boolean.box).orNull)
.volumeSize(volumeSize.orNull)
.snapshotId(snapshotId.orNull)
.build()
}