tencentcloud.TdmqRocketmqNamespace
Explore with Pulumi AI
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:
- Cluster
Id string - Cluster ID.
- Namespace
Name string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- Remark string
- Remarks (up to 128 characters).
- Retention
Time 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.
- Tdmq
Rocketmq stringNamespace Id - 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.
- Cluster
Id string - Cluster ID.
- Namespace
Name string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- Remark string
- Remarks (up to 128 characters).
- Retention
Time 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.
- Tdmq
Rocketmq stringNamespace Id - 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.
- cluster
Id String - Cluster ID.
- namespace
Name String - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- remark String
- Remarks (up to 128 characters).
- retention
Time 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.
- tdmq
Rocketmq StringNamespace Id - 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.
- cluster
Id string - Cluster ID.
- namespace
Name string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- remark string
- Remarks (up to 128 characters).
- retention
Time 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.
- tdmq
Rocketmq stringNamespace Id - 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.
- 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.
- tdmq_
rocketmq_ strnamespace_ id - 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.
- cluster
Id String - Cluster ID.
- namespace
Name String - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- remark String
- Remarks (up to 128 characters).
- retention
Time 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.
- tdmq
Rocketmq StringNamespace Id - 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.
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.
- Public
Endpoint string - Public network access point address.
- Vpc
Endpoint string - VPC access point address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Endpoint string - Public network access point address.
- Vpc
Endpoint string - VPC access point address.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Endpoint String - Public network access point address.
- vpc
Endpoint String - VPC access point address.
- id string
- The provider-assigned unique ID for this managed resource.
- public
Endpoint string - Public network access point address.
- vpc
Endpoint 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.
- public
Endpoint String - Public network access point address.
- vpc
Endpoint 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.
- Cluster
Id string - Cluster ID.
- Namespace
Name string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- Public
Endpoint string - Public network access point address.
- Remark string
- Remarks (up to 128 characters).
- Retention
Time 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.
- Tdmq
Rocketmq stringNamespace Id - 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.
- Vpc
Endpoint string - VPC access point address.
- Cluster
Id string - Cluster ID.
- Namespace
Name string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- Public
Endpoint string - Public network access point address.
- Remark string
- Remarks (up to 128 characters).
- Retention
Time 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.
- Tdmq
Rocketmq stringNamespace Id - 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.
- Vpc
Endpoint string - VPC access point address.
- cluster
Id String - Cluster ID.
- namespace
Name String - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- public
Endpoint String - Public network access point address.
- remark String
- Remarks (up to 128 characters).
- retention
Time 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.
- tdmq
Rocketmq StringNamespace Id - 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.
- vpc
Endpoint String - VPC access point address.
- cluster
Id string - Cluster ID.
- namespace
Name string - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- public
Endpoint string - Public network access point address.
- remark string
- Remarks (up to 128 characters).
- retention
Time 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.
- tdmq
Rocketmq stringNamespace Id - 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.
- vpc
Endpoint 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.
- tdmq_
rocketmq_ strnamespace_ id - 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.
- vpc_
endpoint str - VPC access point address.
- cluster
Id String - Cluster ID.
- namespace
Name String - Namespace name, which can contain 3-64 letters, digits, hyphens, and underscores.
- public
Endpoint String - Public network access point address.
- remark String
- Remarks (up to 128 characters).
- retention
Time 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.
- tdmq
Rocketmq StringNamespace Id - 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.
- vpc
Endpoint 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.