1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TsfNamespace
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

tencentcloud.TsfNamespace

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

    Provides a resource to create a tsf namespace

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const namespace = new tencentcloud.TsfNamespace("namespace", {
        isHaEnable: "0",
        namespaceDesc: "namespace desc",
        namespaceName: "namespace-name",
        namespaceType: "DEF",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    namespace = tencentcloud.TsfNamespace("namespace",
        is_ha_enable="0",
        namespace_desc="namespace desc",
        namespace_name="namespace-name",
        namespace_type="DEF")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTsfNamespace(ctx, "namespace", &tencentcloud.TsfNamespaceArgs{
    			IsHaEnable:    pulumi.String("0"),
    			NamespaceDesc: pulumi.String("namespace desc"),
    			NamespaceName: pulumi.String("namespace-name"),
    			NamespaceType: pulumi.String("DEF"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @namespace = new Tencentcloud.TsfNamespace("namespace", new()
        {
            IsHaEnable = "0",
            NamespaceDesc = "namespace desc",
            NamespaceName = "namespace-name",
            NamespaceType = "DEF",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfNamespace;
    import com.pulumi.tencentcloud.TsfNamespaceArgs;
    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 namespace = new TsfNamespace("namespace", TsfNamespaceArgs.builder()
                .isHaEnable("0")
                .namespaceDesc("namespace desc")
                .namespaceName("namespace-name")
                .namespaceType("DEF")
                .build());
    
        }
    }
    
    resources:
      namespace:
        type: tencentcloud:TsfNamespace
        properties:
          # namespace_id = ""
          isHaEnable: '0'
          # cluster_id = "cls-xxxx"
          namespaceDesc: namespace desc
          namespaceName: namespace-name
          # namespace_resource_type = ""
          namespaceType: DEF
    

    Create TsfNamespace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TsfNamespace(name: string, args: TsfNamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def TsfNamespace(resource_name: str,
                     args: TsfNamespaceArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TsfNamespace(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     namespace_name: Optional[str] = None,
                     cluster_id: Optional[str] = None,
                     is_ha_enable: Optional[str] = None,
                     namespace_desc: Optional[str] = None,
                     namespace_id: Optional[str] = None,
                     namespace_resource_type: Optional[str] = None,
                     namespace_type: Optional[str] = None,
                     program_id: Optional[str] = None,
                     program_id_lists: Optional[Sequence[str]] = None,
                     tsf_namespace_id: Optional[str] = None)
    func NewTsfNamespace(ctx *Context, name string, args TsfNamespaceArgs, opts ...ResourceOption) (*TsfNamespace, error)
    public TsfNamespace(string name, TsfNamespaceArgs args, CustomResourceOptions? opts = null)
    public TsfNamespace(String name, TsfNamespaceArgs args)
    public TsfNamespace(String name, TsfNamespaceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TsfNamespace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TsfNamespaceArgs
    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 TsfNamespaceArgs
    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 TsfNamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TsfNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TsfNamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TsfNamespace Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TsfNamespace resource accepts the following input properties:

    NamespaceName string
    namespace name.
    ClusterId string
    cluster ID.
    IsHaEnable string
    whether to enable high availability.
    NamespaceDesc string
    namespace description.
    NamespaceId string
    Namespace ID.
    NamespaceResourceType string
    namespace resource type (default is DEF).
    NamespaceType string
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    ProgramId string
    ID of the dataset to be bound.
    ProgramIdLists List<string>
    Program id list.
    TsfNamespaceId string
    ID of the resource.
    NamespaceName string
    namespace name.
    ClusterId string
    cluster ID.
    IsHaEnable string
    whether to enable high availability.
    NamespaceDesc string
    namespace description.
    NamespaceId string
    Namespace ID.
    NamespaceResourceType string
    namespace resource type (default is DEF).
    NamespaceType string
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    ProgramId string
    ID of the dataset to be bound.
    ProgramIdLists []string
    Program id list.
    TsfNamespaceId string
    ID of the resource.
    namespaceName String
    namespace name.
    clusterId String
    cluster ID.
    isHaEnable String
    whether to enable high availability.
    namespaceDesc String
    namespace description.
    namespaceId String
    Namespace ID.
    namespaceResourceType String
    namespace resource type (default is DEF).
    namespaceType String
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    programId String
    ID of the dataset to be bound.
    programIdLists List<String>
    Program id list.
    tsfNamespaceId String
    ID of the resource.
    namespaceName string
    namespace name.
    clusterId string
    cluster ID.
    isHaEnable string
    whether to enable high availability.
    namespaceDesc string
    namespace description.
    namespaceId string
    Namespace ID.
    namespaceResourceType string
    namespace resource type (default is DEF).
    namespaceType string
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    programId string
    ID of the dataset to be bound.
    programIdLists string[]
    Program id list.
    tsfNamespaceId string
    ID of the resource.
    namespace_name str
    namespace name.
    cluster_id str
    cluster ID.
    is_ha_enable str
    whether to enable high availability.
    namespace_desc str
    namespace description.
    namespace_id str
    Namespace ID.
    namespace_resource_type str
    namespace resource type (default is DEF).
    namespace_type str
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    program_id str
    ID of the dataset to be bound.
    program_id_lists Sequence[str]
    Program id list.
    tsf_namespace_id str
    ID of the resource.
    namespaceName String
    namespace name.
    clusterId String
    cluster ID.
    isHaEnable String
    whether to enable high availability.
    namespaceDesc String
    namespace description.
    namespaceId String
    Namespace ID.
    namespaceResourceType String
    namespace resource type (default is DEF).
    namespaceType String
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    programId String
    ID of the dataset to be bound.
    programIdLists List<String>
    Program id list.
    tsfNamespaceId String
    ID of the resource.

    Outputs

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

    CreateTime string
    creation time.
    DeleteFlag bool
    Delete ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault string
    default namespace.
    KubeInjectEnable bool
    KubeInjectEnable value.
    NamespaceCode string
    Namespace encoding.
    NamespaceStatus string
    namespace status.
    UpdateTime string
    update time.
    CreateTime string
    creation time.
    DeleteFlag bool
    Delete ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault string
    default namespace.
    KubeInjectEnable bool
    KubeInjectEnable value.
    NamespaceCode string
    Namespace encoding.
    NamespaceStatus string
    namespace status.
    UpdateTime string
    update time.
    createTime String
    creation time.
    deleteFlag Boolean
    Delete ID.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault String
    default namespace.
    kubeInjectEnable Boolean
    KubeInjectEnable value.
    namespaceCode String
    Namespace encoding.
    namespaceStatus String
    namespace status.
    updateTime String
    update time.
    createTime string
    creation time.
    deleteFlag boolean
    Delete ID.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault string
    default namespace.
    kubeInjectEnable boolean
    KubeInjectEnable value.
    namespaceCode string
    Namespace encoding.
    namespaceStatus string
    namespace status.
    updateTime string
    update time.
    create_time str
    creation time.
    delete_flag bool
    Delete ID.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default str
    default namespace.
    kube_inject_enable bool
    KubeInjectEnable value.
    namespace_code str
    Namespace encoding.
    namespace_status str
    namespace status.
    update_time str
    update time.
    createTime String
    creation time.
    deleteFlag Boolean
    Delete ID.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault String
    default namespace.
    kubeInjectEnable Boolean
    KubeInjectEnable value.
    namespaceCode String
    Namespace encoding.
    namespaceStatus String
    namespace status.
    updateTime String
    update time.

    Look up Existing TsfNamespace Resource

    Get an existing TsfNamespace 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?: TsfNamespaceState, opts?: CustomResourceOptions): TsfNamespace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            create_time: Optional[str] = None,
            delete_flag: Optional[bool] = None,
            is_default: Optional[str] = None,
            is_ha_enable: Optional[str] = None,
            kube_inject_enable: Optional[bool] = None,
            namespace_code: Optional[str] = None,
            namespace_desc: Optional[str] = None,
            namespace_id: Optional[str] = None,
            namespace_name: Optional[str] = None,
            namespace_resource_type: Optional[str] = None,
            namespace_status: Optional[str] = None,
            namespace_type: Optional[str] = None,
            program_id: Optional[str] = None,
            program_id_lists: Optional[Sequence[str]] = None,
            tsf_namespace_id: Optional[str] = None,
            update_time: Optional[str] = None) -> TsfNamespace
    func GetTsfNamespace(ctx *Context, name string, id IDInput, state *TsfNamespaceState, opts ...ResourceOption) (*TsfNamespace, error)
    public static TsfNamespace Get(string name, Input<string> id, TsfNamespaceState? state, CustomResourceOptions? opts = null)
    public static TsfNamespace get(String name, Output<String> id, TsfNamespaceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfNamespace    get:      id: ${id}
    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:
    ClusterId string
    cluster ID.
    CreateTime string
    creation time.
    DeleteFlag bool
    Delete ID.
    IsDefault string
    default namespace.
    IsHaEnable string
    whether to enable high availability.
    KubeInjectEnable bool
    KubeInjectEnable value.
    NamespaceCode string
    Namespace encoding.
    NamespaceDesc string
    namespace description.
    NamespaceId string
    Namespace ID.
    NamespaceName string
    namespace name.
    NamespaceResourceType string
    namespace resource type (default is DEF).
    NamespaceStatus string
    namespace status.
    NamespaceType string
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    ProgramId string
    ID of the dataset to be bound.
    ProgramIdLists List<string>
    Program id list.
    TsfNamespaceId string
    ID of the resource.
    UpdateTime string
    update time.
    ClusterId string
    cluster ID.
    CreateTime string
    creation time.
    DeleteFlag bool
    Delete ID.
    IsDefault string
    default namespace.
    IsHaEnable string
    whether to enable high availability.
    KubeInjectEnable bool
    KubeInjectEnable value.
    NamespaceCode string
    Namespace encoding.
    NamespaceDesc string
    namespace description.
    NamespaceId string
    Namespace ID.
    NamespaceName string
    namespace name.
    NamespaceResourceType string
    namespace resource type (default is DEF).
    NamespaceStatus string
    namespace status.
    NamespaceType string
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    ProgramId string
    ID of the dataset to be bound.
    ProgramIdLists []string
    Program id list.
    TsfNamespaceId string
    ID of the resource.
    UpdateTime string
    update time.
    clusterId String
    cluster ID.
    createTime String
    creation time.
    deleteFlag Boolean
    Delete ID.
    isDefault String
    default namespace.
    isHaEnable String
    whether to enable high availability.
    kubeInjectEnable Boolean
    KubeInjectEnable value.
    namespaceCode String
    Namespace encoding.
    namespaceDesc String
    namespace description.
    namespaceId String
    Namespace ID.
    namespaceName String
    namespace name.
    namespaceResourceType String
    namespace resource type (default is DEF).
    namespaceStatus String
    namespace status.
    namespaceType String
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    programId String
    ID of the dataset to be bound.
    programIdLists List<String>
    Program id list.
    tsfNamespaceId String
    ID of the resource.
    updateTime String
    update time.
    clusterId string
    cluster ID.
    createTime string
    creation time.
    deleteFlag boolean
    Delete ID.
    isDefault string
    default namespace.
    isHaEnable string
    whether to enable high availability.
    kubeInjectEnable boolean
    KubeInjectEnable value.
    namespaceCode string
    Namespace encoding.
    namespaceDesc string
    namespace description.
    namespaceId string
    Namespace ID.
    namespaceName string
    namespace name.
    namespaceResourceType string
    namespace resource type (default is DEF).
    namespaceStatus string
    namespace status.
    namespaceType string
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    programId string
    ID of the dataset to be bound.
    programIdLists string[]
    Program id list.
    tsfNamespaceId string
    ID of the resource.
    updateTime string
    update time.
    cluster_id str
    cluster ID.
    create_time str
    creation time.
    delete_flag bool
    Delete ID.
    is_default str
    default namespace.
    is_ha_enable str
    whether to enable high availability.
    kube_inject_enable bool
    KubeInjectEnable value.
    namespace_code str
    Namespace encoding.
    namespace_desc str
    namespace description.
    namespace_id str
    Namespace ID.
    namespace_name str
    namespace name.
    namespace_resource_type str
    namespace resource type (default is DEF).
    namespace_status str
    namespace status.
    namespace_type str
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    program_id str
    ID of the dataset to be bound.
    program_id_lists Sequence[str]
    Program id list.
    tsf_namespace_id str
    ID of the resource.
    update_time str
    update time.
    clusterId String
    cluster ID.
    createTime String
    creation time.
    deleteFlag Boolean
    Delete ID.
    isDefault String
    default namespace.
    isHaEnable String
    whether to enable high availability.
    kubeInjectEnable Boolean
    KubeInjectEnable value.
    namespaceCode String
    Namespace encoding.
    namespaceDesc String
    namespace description.
    namespaceId String
    Namespace ID.
    namespaceName String
    namespace name.
    namespaceResourceType String
    namespace resource type (default is DEF).
    namespaceStatus String
    namespace status.
    namespaceType String
    Whether it is a global namespace (the default is DEF, which means a common namespace; GLOBAL means a global namespace).
    programId String
    ID of the dataset to be bound.
    programIdLists List<String>
    Program id list.
    tsfNamespaceId String
    ID of the resource.
    updateTime String
    update time.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack