io.burkard.cdk.services.ecs.CapacityProviderStrategy.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 CapacityProviderStrategy {
def apply(
capacityProvider: String,
base: Option[Number] = None,
weight: Option[Number] = None
): software.amazon.awscdk.services.ecs.CapacityProviderStrategy =
(new software.amazon.awscdk.services.ecs.CapacityProviderStrategy.Builder)
.capacityProvider(capacityProvider)
.base(base.orNull)
.weight(weight.orNull)
.build()
}