K8sClusterArgs

data class K8sClusterArgs(val csClusterId: Output<String>? = null, val namespaceId: Output<String>? = null) : ConvertibleToJava<K8sClusterArgs>

Provides an EDAS K8s cluster resource. For information about EDAS K8s Cluster and how to use it, seeWhat is EDAS K8s Cluster.

NOTE: Available in 1.93.0+

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.edas.K8sCluster;
import com.pulumi.alicloud.edas.K8sClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new K8sCluster("default", K8sClusterArgs.builder()
.csClusterId("xxxx-xxx-xxx")
.build());
}
}

Import

EDAS cluster can be imported using the id, e.g.

$ pulumi import alicloud:edas/k8sCluster:K8sCluster cluster cluster_id

Constructors

Link copied to clipboard
fun K8sClusterArgs(csClusterId: Output<String>? = null, namespaceId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): K8sClusterArgs

Properties

Link copied to clipboard
val csClusterId: Output<String>? = null

The ID of the alicloud container service kubernetes cluster that you want to import.

Link copied to clipboard
val namespaceId: Output<String>? = null

The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.