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

tencentcloud.TdmqRocketmqNamespace

Explore with Pulumi AI

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

    Provides a resource to create a tdmqRocketmq namespace

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleTdmqRocketmqCluster = new tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster", {
        clusterName: "tf_example",
        remark: "remark.",
    });
    const exampleTdmqRocketmqNamespace = new tencentcloud.TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace", {
        clusterId: exampleTdmqRocketmqCluster.clusterId,
        namespaceName: "tf_example_namespace",
        remark: "remark.",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_tdmq_rocketmq_cluster = tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster",
        cluster_name="tf_example",
        remark="remark.")
    example_tdmq_rocketmq_namespace = tencentcloud.TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace",
        cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
        namespace_name="tf_example_namespace",
        remark="remark.")
    
    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 {
    		exampleTdmqRocketmqCluster, err := tencentcloud.NewTdmqRocketmqCluster(ctx, "exampleTdmqRocketmqCluster", &tencentcloud.TdmqRocketmqClusterArgs{
    			ClusterName: pulumi.String("tf_example"),
    			Remark:      pulumi.String("remark."),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewTdmqRocketmqNamespace(ctx, "exampleTdmqRocketmqNamespace", &tencentcloud.TdmqRocketmqNamespaceArgs{
    			ClusterId:     exampleTdmqRocketmqCluster.ClusterId,
    			NamespaceName: pulumi.String("tf_example_namespace"),
    			Remark:        pulumi.String("remark."),
    		})
    		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 exampleTdmqRocketmqCluster = new Tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster", new()
        {
            ClusterName = "tf_example",
            Remark = "remark.",
        });
    
        var exampleTdmqRocketmqNamespace = new Tencentcloud.TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace", new()
        {
            ClusterId = exampleTdmqRocketmqCluster.ClusterId,
            NamespaceName = "tf_example_namespace",
            Remark = "remark.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TdmqRocketmqCluster;
    import com.pulumi.tencentcloud.TdmqRocketmqClusterArgs;
    import com.pulumi.tencentcloud.TdmqRocketmqNamespace;
    import com.pulumi.tencentcloud.TdmqRocketmqNamespaceArgs;
    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 exampleTdmqRocketmqCluster = new TdmqRocketmqCluster("exampleTdmqRocketmqCluster", TdmqRocketmqClusterArgs.builder()
                .clusterName("tf_example")
                .remark("remark.")
                .build());
    
            var exampleTdmqRocketmqNamespace = new TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace", TdmqRocketmqNamespaceArgs.builder()
                .clusterId(exampleTdmqRocketmqCluster.clusterId())
                .namespaceName("tf_example_namespace")
                .remark("remark.")
                .build());
    
        }
    }
    
    resources:
      exampleTdmqRocketmqCluster:
        type: tencentcloud:TdmqRocketmqCluster
        properties:
          clusterName: tf_example
          remark: remark.
      exampleTdmqRocketmqNamespace:
        type: tencentcloud:TdmqRocketmqNamespace
        properties:
          clusterId: ${exampleTdmqRocketmqCluster.clusterId}
          namespaceName: tf_example_namespace
          remark: remark.
    

    Create TdmqRocketmqNamespace Resource

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

    Constructor syntax

    new TdmqRocketmqNamespace(name: string, args: TdmqRocketmqNamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def TdmqRocketmqNamespace(resource_name: str,
                              args: TdmqRocketmqNamespaceArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def TdmqRocketmqNamespace(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              cluster_id: Optional[str] = None,
                              namespace_name: Optional[str] = None,
                              remark: Optional[str] = None,
                              retention_time: Optional[float] = None,
                              tdmq_rocketmq_namespace_id: Optional[str] = None,
                              ttl: Optional[float] = None)
    func NewTdmqRocketmqNamespace(ctx *Context, name string, args TdmqRocketmqNamespaceArgs, opts ...ResourceOption) (*TdmqRocketmqNamespace, error)
    public TdmqRocketmqNamespace(string name, TdmqRocketmqNamespaceArgs args, CustomResourceOptions? opts = null)
    public TdmqRocketmqNamespace(String name, TdmqRocketmqNamespaceArgs args)
    public TdmqRocketmqNamespace(String name, TdmqRocketmqNamespaceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TdmqRocketmqNamespace
    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 TdmqRocketmqNamespaceArgs
    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 TdmqRocketmqNamespaceArgs
    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 TdmqRocketmqNamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TdmqRocketmqNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TdmqRocketmqNamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ClusterId string
    Cluster ID.
    NamespaceName string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    Remark string
    Remarks (up to 128 characters).
    RetentionTime double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    TdmqRocketmqNamespaceId string
    ID of the resource.
    Ttl double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    ClusterId string
    Cluster ID.
    NamespaceName string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    Remark string
    Remarks (up to 128 characters).
    RetentionTime float64
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    TdmqRocketmqNamespaceId string
    ID of the resource.
    Ttl float64
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    clusterId String
    Cluster ID.
    namespaceName String
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    remark String
    Remarks (up to 128 characters).
    retentionTime Double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmqRocketmqNamespaceId String
    ID of the resource.
    ttl Double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    clusterId string
    Cluster ID.
    namespaceName string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    remark string
    Remarks (up to 128 characters).
    retentionTime number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmqRocketmqNamespaceId string
    ID of the resource.
    ttl number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    cluster_id str
    Cluster ID.
    namespace_name str
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    remark str
    Remarks (up to 128 characters).
    retention_time float
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmq_rocketmq_namespace_id str
    ID of the resource.
    ttl float
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    clusterId String
    Cluster ID.
    namespaceName String
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    remark String
    Remarks (up to 128 characters).
    retentionTime Number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmqRocketmqNamespaceId String
    ID of the resource.
    ttl Number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PublicEndpoint string
    Public network access point address.
    VpcEndpoint string
    VPC access point address.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublicEndpoint string
    Public network access point address.
    VpcEndpoint string
    VPC access point address.
    id String
    The provider-assigned unique ID for this managed resource.
    publicEndpoint String
    Public network access point address.
    vpcEndpoint String
    VPC access point address.
    id string
    The provider-assigned unique ID for this managed resource.
    publicEndpoint string
    Public network access point address.
    vpcEndpoint string
    VPC access point address.
    id str
    The provider-assigned unique ID for this managed resource.
    public_endpoint str
    Public network access point address.
    vpc_endpoint str
    VPC access point address.
    id String
    The provider-assigned unique ID for this managed resource.
    publicEndpoint String
    Public network access point address.
    vpcEndpoint String
    VPC access point address.

    Look up Existing TdmqRocketmqNamespace Resource

    Get an existing TdmqRocketmqNamespace 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?: TdmqRocketmqNamespaceState, opts?: CustomResourceOptions): TdmqRocketmqNamespace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            namespace_name: Optional[str] = None,
            public_endpoint: Optional[str] = None,
            remark: Optional[str] = None,
            retention_time: Optional[float] = None,
            tdmq_rocketmq_namespace_id: Optional[str] = None,
            ttl: Optional[float] = None,
            vpc_endpoint: Optional[str] = None) -> TdmqRocketmqNamespace
    func GetTdmqRocketmqNamespace(ctx *Context, name string, id IDInput, state *TdmqRocketmqNamespaceState, opts ...ResourceOption) (*TdmqRocketmqNamespace, error)
    public static TdmqRocketmqNamespace Get(string name, Input<string> id, TdmqRocketmqNamespaceState? state, CustomResourceOptions? opts = null)
    public static TdmqRocketmqNamespace get(String name, Output<String> id, TdmqRocketmqNamespaceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TdmqRocketmqNamespace    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.
    NamespaceName string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    PublicEndpoint string
    Public network access point address.
    Remark string
    Remarks (up to 128 characters).
    RetentionTime double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    TdmqRocketmqNamespaceId string
    ID of the resource.
    Ttl double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    VpcEndpoint string
    VPC access point address.
    ClusterId string
    Cluster ID.
    NamespaceName string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    PublicEndpoint string
    Public network access point address.
    Remark string
    Remarks (up to 128 characters).
    RetentionTime float64
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    TdmqRocketmqNamespaceId string
    ID of the resource.
    Ttl float64
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    VpcEndpoint string
    VPC access point address.
    clusterId String
    Cluster ID.
    namespaceName String
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    publicEndpoint String
    Public network access point address.
    remark String
    Remarks (up to 128 characters).
    retentionTime Double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmqRocketmqNamespaceId String
    ID of the resource.
    ttl Double
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    vpcEndpoint String
    VPC access point address.
    clusterId string
    Cluster ID.
    namespaceName string
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    publicEndpoint string
    Public network access point address.
    remark string
    Remarks (up to 128 characters).
    retentionTime number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmqRocketmqNamespaceId string
    ID of the resource.
    ttl number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    vpcEndpoint string
    VPC access point address.
    cluster_id str
    Cluster ID.
    namespace_name str
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    public_endpoint str
    Public network access point address.
    remark str
    Remarks (up to 128 characters).
    retention_time float
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmq_rocketmq_namespace_id str
    ID of the resource.
    ttl float
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    vpc_endpoint str
    VPC access point address.
    clusterId String
    Cluster ID.
    namespaceName String
    Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
    publicEndpoint String
    Public network access point address.
    remark String
    Remarks (up to 128 characters).
    retentionTime Number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of persisted messages in milliseconds.

    Deprecated: Deprecated

    tdmqRocketmqNamespaceId String
    ID of the resource.
    ttl Number
    It has been deprecated from version 1.81.20. Due to the adjustment of RocketMQ, the creation or modification of this parameter will be ignored. Retention time of unconsumed messages in milliseconds. Value range: 60 seconds-15 days.

    Deprecated: Deprecated

    vpcEndpoint String
    VPC access point address.

    Import

    tdmqRocketmq namespace can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tdmqRocketmqNamespace:TdmqRocketmqNamespace namespace namespace_id
    

    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