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

io.cloudshiftdev.awscdk.services.stepfunctions.tasks.EksClusterInput.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.services.stepfunctions.tasks

import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.services.eks.ICluster
import io.cloudshiftdev.awscdk.services.stepfunctions.TaskInput
import kotlin.String

/**
 * Class that supports methods which return the EKS cluster name depending on input type.
 *
 * Example:
 *
 * ```
 * EmrContainersCreateVirtualCluster.Builder.create(this, "Create a Virtual Cluster")
 * .eksCluster(EksClusterInput.fromTaskInput(TaskInput.fromText("clusterId")))
 * .eksNamespace("specified-namespace")
 * .build();
 * ```
 */
public open class EksClusterInput(
  cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EksClusterInput,
) : CdkObject(cdkObject) {
  /**
   * The name of the EKS Cluster.
   */
  public open fun clusterName(): String = unwrap(this).getClusterName()

  public companion object {
    public fun fromCluster(cluster: ICluster): EksClusterInput =
        software.amazon.awscdk.services.stepfunctions.tasks.EksClusterInput.fromCluster(cluster.let(ICluster.Companion::unwrap)).let(EksClusterInput::wrap)

    public fun fromTaskInput(taskInput: TaskInput): EksClusterInput =
        software.amazon.awscdk.services.stepfunctions.tasks.EksClusterInput.fromTaskInput(taskInput.let(TaskInput.Companion::unwrap)).let(EksClusterInput::wrap)

    internal
        fun wrap(cdkObject: software.amazon.awscdk.services.stepfunctions.tasks.EksClusterInput):
        EksClusterInput = EksClusterInput(cdkObject)

    internal fun unwrap(wrapped: EksClusterInput):
        software.amazon.awscdk.services.stepfunctions.tasks.EksClusterInput = wrapped.cdkObject as
        software.amazon.awscdk.services.stepfunctions.tasks.EksClusterInput
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy