1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TsfUnitNamespace
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TsfUnitNamespace

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tsf unit_namespace

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const unitNamespace = new tencentcloud.TsfUnitNamespace("unitNamespace", {
        gatewayInstanceId: "gw-ins-lvdypq5k",
        namespaceId: "namespace-vwgo38wy",
        namespaceName: "keep-terraform-cls",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    unit_namespace = tencentcloud.TsfUnitNamespace("unitNamespace",
        gateway_instance_id="gw-ins-lvdypq5k",
        namespace_id="namespace-vwgo38wy",
        namespace_name="keep-terraform-cls")
    
    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.NewTsfUnitNamespace(ctx, "unitNamespace", &tencentcloud.TsfUnitNamespaceArgs{
    			GatewayInstanceId: pulumi.String("gw-ins-lvdypq5k"),
    			NamespaceId:       pulumi.String("namespace-vwgo38wy"),
    			NamespaceName:     pulumi.String("keep-terraform-cls"),
    		})
    		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 unitNamespace = new Tencentcloud.TsfUnitNamespace("unitNamespace", new()
        {
            GatewayInstanceId = "gw-ins-lvdypq5k",
            NamespaceId = "namespace-vwgo38wy",
            NamespaceName = "keep-terraform-cls",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfUnitNamespace;
    import com.pulumi.tencentcloud.TsfUnitNamespaceArgs;
    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 unitNamespace = new TsfUnitNamespace("unitNamespace", TsfUnitNamespaceArgs.builder()
                .gatewayInstanceId("gw-ins-lvdypq5k")
                .namespaceId("namespace-vwgo38wy")
                .namespaceName("keep-terraform-cls")
                .build());
    
        }
    }
    
    resources:
      unitNamespace:
        type: tencentcloud:TsfUnitNamespace
        properties:
          gatewayInstanceId: gw-ins-lvdypq5k
          namespaceId: namespace-vwgo38wy
          namespaceName: keep-terraform-cls
    

    Create TsfUnitNamespace Resource

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

    Constructor syntax

    new TsfUnitNamespace(name: string, args: TsfUnitNamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def TsfUnitNamespace(resource_name: str,
                         args: TsfUnitNamespaceArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def TsfUnitNamespace(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         gateway_instance_id: Optional[str] = None,
                         namespace_id: Optional[str] = None,
                         namespace_name: Optional[str] = None,
                         tsf_unit_namespace_id: Optional[str] = None)
    func NewTsfUnitNamespace(ctx *Context, name string, args TsfUnitNamespaceArgs, opts ...ResourceOption) (*TsfUnitNamespace, error)
    public TsfUnitNamespace(string name, TsfUnitNamespaceArgs args, CustomResourceOptions? opts = null)
    public TsfUnitNamespace(String name, TsfUnitNamespaceArgs args)
    public TsfUnitNamespace(String name, TsfUnitNamespaceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TsfUnitNamespace
    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 TsfUnitNamespaceArgs
    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 TsfUnitNamespaceArgs
    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 TsfUnitNamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TsfUnitNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TsfUnitNamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TsfUnitNamespace 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 TsfUnitNamespace resource accepts the following input properties:

    GatewayInstanceId string
    gateway instance Id.
    NamespaceId string
    namespace id.
    NamespaceName string
    namespace name.
    TsfUnitNamespaceId string
    ID of the resource.
    GatewayInstanceId string
    gateway instance Id.
    NamespaceId string
    namespace id.
    NamespaceName string
    namespace name.
    TsfUnitNamespaceId string
    ID of the resource.
    gatewayInstanceId String
    gateway instance Id.
    namespaceId String
    namespace id.
    namespaceName String
    namespace name.
    tsfUnitNamespaceId String
    ID of the resource.
    gatewayInstanceId string
    gateway instance Id.
    namespaceId string
    namespace id.
    namespaceName string
    namespace name.
    tsfUnitNamespaceId string
    ID of the resource.
    gateway_instance_id str
    gateway instance Id.
    namespace_id str
    namespace id.
    namespace_name str
    namespace name.
    tsf_unit_namespace_id str
    ID of the resource.
    gatewayInstanceId String
    gateway instance Id.
    namespaceId String
    namespace id.
    namespaceName String
    namespace name.
    tsfUnitNamespaceId String
    ID of the resource.

    Outputs

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

    CreatedTime string
    Create time. Note: This field may return null, indicating that no valid value was found.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedTime string
    Update time. Note: This field may return null, indicating that no valid value was found.
    CreatedTime string
    Create time. Note: This field may return null, indicating that no valid value was found.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedTime string
    Update time. Note: This field may return null, indicating that no valid value was found.
    createdTime String
    Create time. Note: This field may return null, indicating that no valid value was found.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedTime String
    Update time. Note: This field may return null, indicating that no valid value was found.
    createdTime string
    Create time. Note: This field may return null, indicating that no valid value was found.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedTime string
    Update time. Note: This field may return null, indicating that no valid value was found.
    created_time str
    Create time. Note: This field may return null, indicating that no valid value was found.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_time str
    Update time. Note: This field may return null, indicating that no valid value was found.
    createdTime String
    Create time. Note: This field may return null, indicating that no valid value was found.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedTime String
    Update time. Note: This field may return null, indicating that no valid value was found.

    Look up Existing TsfUnitNamespace Resource

    Get an existing TsfUnitNamespace 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?: TsfUnitNamespaceState, opts?: CustomResourceOptions): TsfUnitNamespace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_time: Optional[str] = None,
            gateway_instance_id: Optional[str] = None,
            namespace_id: Optional[str] = None,
            namespace_name: Optional[str] = None,
            tsf_unit_namespace_id: Optional[str] = None,
            updated_time: Optional[str] = None) -> TsfUnitNamespace
    func GetTsfUnitNamespace(ctx *Context, name string, id IDInput, state *TsfUnitNamespaceState, opts ...ResourceOption) (*TsfUnitNamespace, error)
    public static TsfUnitNamespace Get(string name, Input<string> id, TsfUnitNamespaceState? state, CustomResourceOptions? opts = null)
    public static TsfUnitNamespace get(String name, Output<String> id, TsfUnitNamespaceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfUnitNamespace    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:
    CreatedTime string
    Create time. Note: This field may return null, indicating that no valid value was found.
    GatewayInstanceId string
    gateway instance Id.
    NamespaceId string
    namespace id.
    NamespaceName string
    namespace name.
    TsfUnitNamespaceId string
    ID of the resource.
    UpdatedTime string
    Update time. Note: This field may return null, indicating that no valid value was found.
    CreatedTime string
    Create time. Note: This field may return null, indicating that no valid value was found.
    GatewayInstanceId string
    gateway instance Id.
    NamespaceId string
    namespace id.
    NamespaceName string
    namespace name.
    TsfUnitNamespaceId string
    ID of the resource.
    UpdatedTime string
    Update time. Note: This field may return null, indicating that no valid value was found.
    createdTime String
    Create time. Note: This field may return null, indicating that no valid value was found.
    gatewayInstanceId String
    gateway instance Id.
    namespaceId String
    namespace id.
    namespaceName String
    namespace name.
    tsfUnitNamespaceId String
    ID of the resource.
    updatedTime String
    Update time. Note: This field may return null, indicating that no valid value was found.
    createdTime string
    Create time. Note: This field may return null, indicating that no valid value was found.
    gatewayInstanceId string
    gateway instance Id.
    namespaceId string
    namespace id.
    namespaceName string
    namespace name.
    tsfUnitNamespaceId string
    ID of the resource.
    updatedTime string
    Update time. Note: This field may return null, indicating that no valid value was found.
    created_time str
    Create time. Note: This field may return null, indicating that no valid value was found.
    gateway_instance_id str
    gateway instance Id.
    namespace_id str
    namespace id.
    namespace_name str
    namespace name.
    tsf_unit_namespace_id str
    ID of the resource.
    updated_time str
    Update time. Note: This field may return null, indicating that no valid value was found.
    createdTime String
    Create time. Note: This field may return null, indicating that no valid value was found.
    gatewayInstanceId String
    gateway instance Id.
    namespaceId String
    namespace id.
    namespaceName String
    namespace name.
    tsfUnitNamespaceId String
    ID of the resource.
    updatedTime String
    Update time. Note: This field may return null, indicating that no valid value was found.

    Import

    tsf unit_namespace can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tsfUnitNamespace:TsfUnitNamespace unit_namespace gw-ins-lvdypq5k#namespace-vwgo38wy
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack