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

io.burkard.cdk.services.ecs.SplunkLogDriver.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SplunkLogDriver {

  def apply(
    url: String,
    format: Option[software.amazon.awscdk.services.ecs.SplunkLogFormat] = None,
    sourceType: Option[String] = None,
    source: Option[String] = None,
    insecureSkipVerify: Option[String] = None,
    gzipLevel: Option[Number] = None,
    caPath: Option[String] = None,
    tag: Option[String] = None,
    gzip: Option[Boolean] = None,
    labels: Option[List[String]] = None,
    verifyConnection: Option[Boolean] = None,
    secretToken: Option[software.amazon.awscdk.services.ecs.Secret] = None,
    caName: Option[String] = None,
    envRegex: Option[String] = None,
    env: Option[List[String]] = None,
    index: Option[String] = None
  ): software.amazon.awscdk.services.ecs.SplunkLogDriver =
    software.amazon.awscdk.services.ecs.SplunkLogDriver.Builder
      .create()
      .url(url)
      .format(format.orNull)
      .sourceType(sourceType.orNull)
      .source(source.orNull)
      .insecureSkipVerify(insecureSkipVerify.orNull)
      .gzipLevel(gzipLevel.orNull)
      .caPath(caPath.orNull)
      .tag(tag.orNull)
      .gzip(gzip.map(Boolean.box).orNull)
      .labels(labels.map(_.asJava).orNull)
      .verifyConnection(verifyConnection.map(Boolean.box).orNull)
      .secretToken(secretToken.orNull)
      .caName(caName.orNull)
      .envRegex(envRegex.orNull)
      .env(env.map(_.asJava).orNull)
      .index(index.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy