io.burkard.cdk.services.ecs.Volume.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object Volume {
def apply(
name: String,
host: Option[software.amazon.awscdk.services.ecs.Host] = None,
dockerVolumeConfiguration: Option[software.amazon.awscdk.services.ecs.DockerVolumeConfiguration] = None,
efsVolumeConfiguration: Option[software.amazon.awscdk.services.ecs.EfsVolumeConfiguration] = None
): software.amazon.awscdk.services.ecs.Volume =
(new software.amazon.awscdk.services.ecs.Volume.Builder)
.name(name)
.host(host.orNull)
.dockerVolumeConfiguration(dockerVolumeConfiguration.orNull)
.efsVolumeConfiguration(efsVolumeConfiguration.orNull)
.build()
}