io.burkard.cdk.services.ec2.VolumeProps.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 VolumeProps {
def apply(
availabilityZone: String,
enableMultiAttach: Option[Boolean] = None,
size: Option[software.amazon.awscdk.Size] = None,
volumeType: Option[software.amazon.awscdk.services.ec2.EbsDeviceVolumeType] = None,
autoEnableIo: Option[Boolean] = None,
volumeName: Option[String] = None,
encrypted: Option[Boolean] = None,
iops: Option[Number] = None,
encryptionKey: Option[software.amazon.awscdk.services.kms.IKey] = None,
removalPolicy: Option[software.amazon.awscdk.RemovalPolicy] = None,
snapshotId: Option[String] = None
): software.amazon.awscdk.services.ec2.VolumeProps =
(new software.amazon.awscdk.services.ec2.VolumeProps.Builder)
.availabilityZone(availabilityZone)
.enableMultiAttach(enableMultiAttach.map(Boolean.box).orNull)
.size(size.orNull)
.volumeType(volumeType.orNull)
.autoEnableIo(autoEnableIo.map(Boolean.box).orNull)
.volumeName(volumeName.orNull)
.encrypted(encrypted.map(Boolean.box).orNull)
.iops(iops.orNull)
.encryptionKey(encryptionKey.orNull)
.removalPolicy(removalPolicy.orNull)
.snapshotId(snapshotId.orNull)
.build()
}