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

io.burkard.cdk.services.servicediscovery.Service.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.servicediscovery

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object Service {

  def apply(
    internalResourceId: String,
    namespace: software.amazon.awscdk.services.servicediscovery.INamespace,
    healthCheck: Option[software.amazon.awscdk.services.servicediscovery.HealthCheckConfig] = None,
    name: Option[String] = None,
    description: Option[String] = None,
    routingPolicy: Option[software.amazon.awscdk.services.servicediscovery.RoutingPolicy] = None,
    dnsTtl: Option[software.amazon.awscdk.Duration] = None,
    loadBalancer: Option[Boolean] = None,
    customHealthCheck: Option[software.amazon.awscdk.services.servicediscovery.HealthCheckCustomConfig] = None,
    dnsRecordType: Option[software.amazon.awscdk.services.servicediscovery.DnsRecordType] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.servicediscovery.Service =
    software.amazon.awscdk.services.servicediscovery.Service.Builder
      .create(stackCtx, internalResourceId)
      .namespace(namespace)
      .healthCheck(healthCheck.orNull)
      .name(name.orNull)
      .description(description.orNull)
      .routingPolicy(routingPolicy.orNull)
      .dnsTtl(dnsTtl.orNull)
      .loadBalancer(loadBalancer.map(Boolean.box).orNull)
      .customHealthCheck(customHealthCheck.orNull)
      .dnsRecordType(dnsRecordType.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy