1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. edas
  5. K8sCluster
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.edas.K8sCluster

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

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

    NOTE: Available since v1.93.0.

    Create K8sCluster Resource

    new K8sCluster(name: string, args: K8sClusterArgs, opts?: CustomResourceOptions);
    @overload
    def K8sCluster(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cs_cluster_id: Optional[str] = None,
                   namespace_id: Optional[str] = None)
    @overload
    def K8sCluster(resource_name: str,
                   args: K8sClusterArgs,
                   opts: Optional[ResourceOptions] = None)
    func NewK8sCluster(ctx *Context, name string, args K8sClusterArgs, opts ...ResourceOption) (*K8sCluster, error)
    public K8sCluster(string name, K8sClusterArgs args, CustomResourceOptions? opts = null)
    public K8sCluster(String name, K8sClusterArgs args)
    public K8sCluster(String name, K8sClusterArgs args, CustomResourceOptions options)
    
    type: alicloud:edas:K8sCluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args K8sClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args K8sClusterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args K8sClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args K8sClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args K8sClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    K8sCluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The K8sCluster resource accepts the following input properties:

    CsClusterId string
    The ID of the alicloud container service kubernetes cluster that you want to import.
    NamespaceId string
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    CsClusterId string
    The ID of the alicloud container service kubernetes cluster that you want to import.
    NamespaceId string
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    csClusterId String
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespaceId String
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    csClusterId string
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespaceId string
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    cs_cluster_id str
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespace_id str
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    csClusterId String
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespaceId String
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the K8sCluster resource produces the following output properties:

    ClusterImportStatus int
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    ClusterName string
    The name of the cluster that you want to create.
    ClusterType int
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkMode int
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    VpcId string
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    ClusterImportStatus int
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    ClusterName string
    The name of the cluster that you want to create.
    ClusterType int
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkMode int
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    VpcId string
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    clusterImportStatus Integer
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    clusterName String
    The name of the cluster that you want to create.
    clusterType Integer
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    networkMode Integer
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpcId String
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    clusterImportStatus number
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    clusterName string
    The name of the cluster that you want to create.
    clusterType number
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    networkMode number
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpcId string
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    cluster_import_status int
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    cluster_name str
    The name of the cluster that you want to create.
    cluster_type int
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    id str
    The provider-assigned unique ID for this managed resource.
    network_mode int
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpc_id str
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    clusterImportStatus Number
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    clusterName String
    The name of the cluster that you want to create.
    clusterType Number
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    networkMode Number
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpcId String
    The ID of the Virtual Private Cloud (VPC) for the cluster.

    Look up Existing K8sCluster Resource

    Get an existing K8sCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: K8sClusterState, opts?: CustomResourceOptions): K8sCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_import_status: Optional[int] = None,
            cluster_name: Optional[str] = None,
            cluster_type: Optional[int] = None,
            cs_cluster_id: Optional[str] = None,
            namespace_id: Optional[str] = None,
            network_mode: Optional[int] = None,
            vpc_id: Optional[str] = None) -> K8sCluster
    func GetK8sCluster(ctx *Context, name string, id IDInput, state *K8sClusterState, opts ...ResourceOption) (*K8sCluster, error)
    public static K8sCluster Get(string name, Input<string> id, K8sClusterState? state, CustomResourceOptions? opts = null)
    public static K8sCluster get(String name, Output<String> id, K8sClusterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClusterImportStatus int
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    ClusterName string
    The name of the cluster that you want to create.
    ClusterType int
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    CsClusterId string
    The ID of the alicloud container service kubernetes cluster that you want to import.
    NamespaceId string
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    NetworkMode int
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    VpcId string
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    ClusterImportStatus int
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    ClusterName string
    The name of the cluster that you want to create.
    ClusterType int
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    CsClusterId string
    The ID of the alicloud container service kubernetes cluster that you want to import.
    NamespaceId string
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    NetworkMode int
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    VpcId string
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    clusterImportStatus Integer
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    clusterName String
    The name of the cluster that you want to create.
    clusterType Integer
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    csClusterId String
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespaceId String
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    networkMode Integer
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpcId String
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    clusterImportStatus number
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    clusterName string
    The name of the cluster that you want to create.
    clusterType number
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    csClusterId string
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespaceId string
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    networkMode number
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpcId string
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    cluster_import_status int
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    cluster_name str
    The name of the cluster that you want to create.
    cluster_type int
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    cs_cluster_id str
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespace_id str
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    network_mode int
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpc_id str
    The ID of the Virtual Private Cloud (VPC) for the cluster.
    clusterImportStatus Number
    The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.
    clusterName String
    The name of the cluster that you want to create.
    clusterType Number
    The type of the cluster that you want to create. Valid values only: 5: K8s cluster.
    csClusterId String
    The ID of the alicloud container service kubernetes cluster that you want to import.
    namespaceId String
    The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.
    networkMode Number
    The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
    vpcId String
    The ID of the Virtual Private Cloud (VPC) for the cluster.

    Import

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

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi