All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ecs.ClusterProps.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 ClusterProps {

  def apply(
    defaultCloudMapNamespace: Option[software.amazon.awscdk.services.ecs.CloudMapNamespaceOptions] = None,
    enableFargateCapacityProviders: Option[Boolean] = None,
    vpc: Option[software.amazon.awscdk.services.ec2.IVpc] = None,
    executeCommandConfiguration: Option[software.amazon.awscdk.services.ecs.ExecuteCommandConfiguration] = None,
    clusterName: Option[String] = None,
    containerInsights: Option[Boolean] = None,
    capacity: Option[software.amazon.awscdk.services.ecs.AddCapacityOptions] = None
  ): software.amazon.awscdk.services.ecs.ClusterProps =
    (new software.amazon.awscdk.services.ecs.ClusterProps.Builder)
      .defaultCloudMapNamespace(defaultCloudMapNamespace.orNull)
      .enableFargateCapacityProviders(enableFargateCapacityProviders.map(Boolean.box).orNull)
      .vpc(vpc.orNull)
      .executeCommandConfiguration(executeCommandConfiguration.orNull)
      .clusterName(clusterName.orNull)
      .containerInsights(containerInsights.map(Boolean.box).orNull)
      .capacity(capacity.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy