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

io.burkard.cdk.services.eks.KubernetesObjectValue.scala Maven / Gradle / Ivy

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

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

  def apply(
    internalResourceId: String,
    jsonPath: String,
    cluster: software.amazon.awscdk.services.eks.ICluster,
    objectType: String,
    objectName: String,
    objectNamespace: Option[String] = None,
    timeout: Option[software.amazon.awscdk.Duration] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.eks.KubernetesObjectValue =
    software.amazon.awscdk.services.eks.KubernetesObjectValue.Builder
      .create(stackCtx, internalResourceId)
      .jsonPath(jsonPath)
      .cluster(cluster)
      .objectType(objectType)
      .objectName(objectName)
      .objectNamespace(objectNamespace.orNull)
      .timeout(timeout.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy