tencentcloud.TdmqRocketmqGroup
Explore with Pulumi AI
Provides a resource to create a tdmqRocketmq group
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",
remark: "remark.",
});
const exampleTdmqRocketmqGroup = new tencentcloud.TdmqRocketmqGroup("exampleTdmqRocketmqGroup", {
groupName: "tf_example",
clusterId: exampleTdmqRocketmqCluster.clusterId,
namespace: exampleTdmqRocketmqNamespace.namespaceName,
readEnable: true,
broadcastEnable: true,
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",
remark="remark.")
example_tdmq_rocketmq_group = tencentcloud.TdmqRocketmqGroup("exampleTdmqRocketmqGroup",
group_name="tf_example",
cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
namespace=example_tdmq_rocketmq_namespace.namespace_name,
read_enable=True,
broadcast_enable=True,
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
}
exampleTdmqRocketmqNamespace, err := tencentcloud.NewTdmqRocketmqNamespace(ctx, "exampleTdmqRocketmqNamespace", &tencentcloud.TdmqRocketmqNamespaceArgs{
ClusterId: exampleTdmqRocketmqCluster.ClusterId,
NamespaceName: pulumi.String("tf_example"),
Remark: pulumi.String("remark."),
})
if err != nil {
return err
}
_, err = tencentcloud.NewTdmqRocketmqGroup(ctx, "exampleTdmqRocketmqGroup", &tencentcloud.TdmqRocketmqGroupArgs{
GroupName: pulumi.String("tf_example"),
ClusterId: exampleTdmqRocketmqCluster.ClusterId,
Namespace: exampleTdmqRocketmqNamespace.NamespaceName,
ReadEnable: pulumi.Bool(true),
BroadcastEnable: pulumi.Bool(true),
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",
Remark = "remark.",
});
var exampleTdmqRocketmqGroup = new Tencentcloud.TdmqRocketmqGroup("exampleTdmqRocketmqGroup", new()
{
GroupName = "tf_example",
ClusterId = exampleTdmqRocketmqCluster.ClusterId,
Namespace = exampleTdmqRocketmqNamespace.NamespaceName,
ReadEnable = true,
BroadcastEnable = true,
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 com.pulumi.tencentcloud.TdmqRocketmqGroup;
import com.pulumi.tencentcloud.TdmqRocketmqGroupArgs;
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")
.remark("remark.")
.build());
var exampleTdmqRocketmqGroup = new TdmqRocketmqGroup("exampleTdmqRocketmqGroup", TdmqRocketmqGroupArgs.builder()
.groupName("tf_example")
.clusterId(exampleTdmqRocketmqCluster.clusterId())
.namespace(exampleTdmqRocketmqNamespace.namespaceName())
.readEnable(true)
.broadcastEnable(true)
.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
remark: remark.
exampleTdmqRocketmqGroup:
type: tencentcloud:TdmqRocketmqGroup
properties:
groupName: tf_example
clusterId: ${exampleTdmqRocketmqCluster.clusterId}
namespace: ${exampleTdmqRocketmqNamespace.namespaceName}
readEnable: true
broadcastEnable: true
remark: remark.
Create TdmqRocketmqGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TdmqRocketmqGroup(name: string, args: TdmqRocketmqGroupArgs, opts?: CustomResourceOptions);
@overload
def TdmqRocketmqGroup(resource_name: str,
args: TdmqRocketmqGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TdmqRocketmqGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
broadcast_enable: Optional[bool] = None,
cluster_id: Optional[str] = None,
group_name: Optional[str] = None,
namespace: Optional[str] = None,
read_enable: Optional[bool] = None,
remark: Optional[str] = None,
tdmq_rocketmq_group_id: Optional[str] = None)
func NewTdmqRocketmqGroup(ctx *Context, name string, args TdmqRocketmqGroupArgs, opts ...ResourceOption) (*TdmqRocketmqGroup, error)
public TdmqRocketmqGroup(string name, TdmqRocketmqGroupArgs args, CustomResourceOptions? opts = null)
public TdmqRocketmqGroup(String name, TdmqRocketmqGroupArgs args)
public TdmqRocketmqGroup(String name, TdmqRocketmqGroupArgs args, CustomResourceOptions options)
type: tencentcloud:TdmqRocketmqGroup
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 TdmqRocketmqGroupArgs
- 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 TdmqRocketmqGroupArgs
- 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 TdmqRocketmqGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TdmqRocketmqGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TdmqRocketmqGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TdmqRocketmqGroup 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 TdmqRocketmqGroup resource accepts the following input properties:
- Broadcast
Enable bool - Whether to enable broadcast consumption.
- Cluster
Id string - Cluster ID.
- Group
Name string - Group name (8-64 characters).
- Namespace string
- Namespace. Currently, only one namespace is supported.
- Read
Enable bool - Whether to enable consumption.
- Remark string
- Remarks (up to 128 characters).
- Tdmq
Rocketmq stringGroup Id - ID of the resource.
- Broadcast
Enable bool - Whether to enable broadcast consumption.
- Cluster
Id string - Cluster ID.
- Group
Name string - Group name (8-64 characters).
- Namespace string
- Namespace. Currently, only one namespace is supported.
- Read
Enable bool - Whether to enable consumption.
- Remark string
- Remarks (up to 128 characters).
- Tdmq
Rocketmq stringGroup Id - ID of the resource.
- broadcast
Enable Boolean - Whether to enable broadcast consumption.
- cluster
Id String - Cluster ID.
- group
Name String - Group name (8-64 characters).
- namespace String
- Namespace. Currently, only one namespace is supported.
- read
Enable Boolean - Whether to enable consumption.
- remark String
- Remarks (up to 128 characters).
- tdmq
Rocketmq StringGroup Id - ID of the resource.
- broadcast
Enable boolean - Whether to enable broadcast consumption.
- cluster
Id string - Cluster ID.
- group
Name string - Group name (8-64 characters).
- namespace string
- Namespace. Currently, only one namespace is supported.
- read
Enable boolean - Whether to enable consumption.
- remark string
- Remarks (up to 128 characters).
- tdmq
Rocketmq stringGroup Id - ID of the resource.
- broadcast_
enable bool - Whether to enable broadcast consumption.
- cluster_
id str - Cluster ID.
- group_
name str - Group name (8-64 characters).
- namespace str
- Namespace. Currently, only one namespace is supported.
- read_
enable bool - Whether to enable consumption.
- remark str
- Remarks (up to 128 characters).
- tdmq_
rocketmq_ strgroup_ id - ID of the resource.
- broadcast
Enable Boolean - Whether to enable broadcast consumption.
- cluster
Id String - Cluster ID.
- group
Name String - Group name (8-64 characters).
- namespace String
- Namespace. Currently, only one namespace is supported.
- read
Enable Boolean - Whether to enable consumption.
- remark String
- Remarks (up to 128 characters).
- tdmq
Rocketmq StringGroup Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TdmqRocketmqGroup resource produces the following output properties:
- Client
Protocol string - Client protocol.
- Consumer
Num double - The number of online consumers.
- Consumer
Type string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- Consumption
Mode double 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- Create
Time double - Creation time in milliseconds.
- Id string
- The provider-assigned unique ID for this managed resource.
- Retry
Partition doubleNum - The number of partitions in a retry topic.
- Total
Accumulative double - The total number of heaped messages.
- Tps double
- Consumption TPS.
- Update
Time double - Modification time in milliseconds.
- Client
Protocol string - Client protocol.
- Consumer
Num float64 - The number of online consumers.
- Consumer
Type string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- Consumption
Mode float64 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- Create
Time float64 - Creation time in milliseconds.
- Id string
- The provider-assigned unique ID for this managed resource.
- Retry
Partition float64Num - The number of partitions in a retry topic.
- Total
Accumulative float64 - The total number of heaped messages.
- Tps float64
- Consumption TPS.
- Update
Time float64 - Modification time in milliseconds.
- client
Protocol String - Client protocol.
- consumer
Num Double - The number of online consumers.
- consumer
Type String - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode Double 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time Double - Creation time in milliseconds.
- id String
- The provider-assigned unique ID for this managed resource.
- retry
Partition DoubleNum - The number of partitions in a retry topic.
- total
Accumulative Double - The total number of heaped messages.
- tps Double
- Consumption TPS.
- update
Time Double - Modification time in milliseconds.
- client
Protocol string - Client protocol.
- consumer
Num number - The number of online consumers.
- consumer
Type string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode number 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time number - Creation time in milliseconds.
- id string
- The provider-assigned unique ID for this managed resource.
- retry
Partition numberNum - The number of partitions in a retry topic.
- total
Accumulative number - The total number of heaped messages.
- tps number
- Consumption TPS.
- update
Time number - Modification time in milliseconds.
- client_
protocol str - Client protocol.
- consumer_
num float - The number of online consumers.
- consumer_
type str - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption_
mode float 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create_
time float - Creation time in milliseconds.
- id str
- The provider-assigned unique ID for this managed resource.
- retry_
partition_ floatnum - The number of partitions in a retry topic.
- total_
accumulative float - The total number of heaped messages.
- tps float
- Consumption TPS.
- update_
time float - Modification time in milliseconds.
- client
Protocol String - Client protocol.
- consumer
Num Number - The number of online consumers.
- consumer
Type String - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode Number 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time Number - Creation time in milliseconds.
- id String
- The provider-assigned unique ID for this managed resource.
- retry
Partition NumberNum - The number of partitions in a retry topic.
- total
Accumulative Number - The total number of heaped messages.
- tps Number
- Consumption TPS.
- update
Time Number - Modification time in milliseconds.
Look up Existing TdmqRocketmqGroup Resource
Get an existing TdmqRocketmqGroup 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?: TdmqRocketmqGroupState, opts?: CustomResourceOptions): TdmqRocketmqGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
broadcast_enable: Optional[bool] = None,
client_protocol: Optional[str] = None,
cluster_id: Optional[str] = None,
consumer_num: Optional[float] = None,
consumer_type: Optional[str] = None,
consumption_mode: Optional[float] = None,
create_time: Optional[float] = None,
group_name: Optional[str] = None,
namespace: Optional[str] = None,
read_enable: Optional[bool] = None,
remark: Optional[str] = None,
retry_partition_num: Optional[float] = None,
tdmq_rocketmq_group_id: Optional[str] = None,
total_accumulative: Optional[float] = None,
tps: Optional[float] = None,
update_time: Optional[float] = None) -> TdmqRocketmqGroup
func GetTdmqRocketmqGroup(ctx *Context, name string, id IDInput, state *TdmqRocketmqGroupState, opts ...ResourceOption) (*TdmqRocketmqGroup, error)
public static TdmqRocketmqGroup Get(string name, Input<string> id, TdmqRocketmqGroupState? state, CustomResourceOptions? opts = null)
public static TdmqRocketmqGroup get(String name, Output<String> id, TdmqRocketmqGroupState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TdmqRocketmqGroup 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.
- Broadcast
Enable bool - Whether to enable broadcast consumption.
- Client
Protocol string - Client protocol.
- Cluster
Id string - Cluster ID.
- Consumer
Num double - The number of online consumers.
- Consumer
Type string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- Consumption
Mode double 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- Create
Time double - Creation time in milliseconds.
- Group
Name string - Group name (8-64 characters).
- Namespace string
- Namespace. Currently, only one namespace is supported.
- Read
Enable bool - Whether to enable consumption.
- Remark string
- Remarks (up to 128 characters).
- Retry
Partition doubleNum - The number of partitions in a retry topic.
- Tdmq
Rocketmq stringGroup Id - ID of the resource.
- Total
Accumulative double - The total number of heaped messages.
- Tps double
- Consumption TPS.
- Update
Time double - Modification time in milliseconds.
- Broadcast
Enable bool - Whether to enable broadcast consumption.
- Client
Protocol string - Client protocol.
- Cluster
Id string - Cluster ID.
- Consumer
Num float64 - The number of online consumers.
- Consumer
Type string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- Consumption
Mode float64 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- Create
Time float64 - Creation time in milliseconds.
- Group
Name string - Group name (8-64 characters).
- Namespace string
- Namespace. Currently, only one namespace is supported.
- Read
Enable bool - Whether to enable consumption.
- Remark string
- Remarks (up to 128 characters).
- Retry
Partition float64Num - The number of partitions in a retry topic.
- Tdmq
Rocketmq stringGroup Id - ID of the resource.
- Total
Accumulative float64 - The total number of heaped messages.
- Tps float64
- Consumption TPS.
- Update
Time float64 - Modification time in milliseconds.
- broadcast
Enable Boolean - Whether to enable broadcast consumption.
- client
Protocol String - Client protocol.
- cluster
Id String - Cluster ID.
- consumer
Num Double - The number of online consumers.
- consumer
Type String - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode Double 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time Double - Creation time in milliseconds.
- group
Name String - Group name (8-64 characters).
- namespace String
- Namespace. Currently, only one namespace is supported.
- read
Enable Boolean - Whether to enable consumption.
- remark String
- Remarks (up to 128 characters).
- retry
Partition DoubleNum - The number of partitions in a retry topic.
- tdmq
Rocketmq StringGroup Id - ID of the resource.
- total
Accumulative Double - The total number of heaped messages.
- tps Double
- Consumption TPS.
- update
Time Double - Modification time in milliseconds.
- broadcast
Enable boolean - Whether to enable broadcast consumption.
- client
Protocol string - Client protocol.
- cluster
Id string - Cluster ID.
- consumer
Num number - The number of online consumers.
- consumer
Type string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode number 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time number - Creation time in milliseconds.
- group
Name string - Group name (8-64 characters).
- namespace string
- Namespace. Currently, only one namespace is supported.
- read
Enable boolean - Whether to enable consumption.
- remark string
- Remarks (up to 128 characters).
- retry
Partition numberNum - The number of partitions in a retry topic.
- tdmq
Rocketmq stringGroup Id - ID of the resource.
- total
Accumulative number - The total number of heaped messages.
- tps number
- Consumption TPS.
- update
Time number - Modification time in milliseconds.
- broadcast_
enable bool - Whether to enable broadcast consumption.
- client_
protocol str - Client protocol.
- cluster_
id str - Cluster ID.
- consumer_
num float - The number of online consumers.
- consumer_
type str - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption_
mode float 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create_
time float - Creation time in milliseconds.
- group_
name str - Group name (8-64 characters).
- namespace str
- Namespace. Currently, only one namespace is supported.
- read_
enable bool - Whether to enable consumption.
- remark str
- Remarks (up to 128 characters).
- retry_
partition_ floatnum - The number of partitions in a retry topic.
- tdmq_
rocketmq_ strgroup_ id - ID of the resource.
- total_
accumulative float - The total number of heaped messages.
- tps float
- Consumption TPS.
- update_
time float - Modification time in milliseconds.
- broadcast
Enable Boolean - Whether to enable broadcast consumption.
- client
Protocol String - Client protocol.
- cluster
Id String - Cluster ID.
- consumer
Num Number - The number of online consumers.
- consumer
Type String - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode Number 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time Number - Creation time in milliseconds.
- group
Name String - Group name (8-64 characters).
- namespace String
- Namespace. Currently, only one namespace is supported.
- read
Enable Boolean - Whether to enable consumption.
- remark String
- Remarks (up to 128 characters).
- retry
Partition NumberNum - The number of partitions in a retry topic.
- tdmq
Rocketmq StringGroup Id - ID of the resource.
- total
Accumulative Number - The total number of heaped messages.
- tps Number
- Consumption TPS.
- update
Time Number - Modification time in milliseconds.
Import
tdmqRocketmq group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tdmqRocketmqGroup:TdmqRocketmqGroup group group_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.