published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
A virtual collection of multiple consumers. When consuming log data at the consumer group level, all consumers in the group subscribe to the same log topic and jointly consume data from that log topic. Each consumer consumes data from one or more Shards in the log topic, and there is no duplicate consumption of data among consumers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const tLSConsumerGroupDemo = new volcenginecc.tls.ConsumerGroup("TLSConsumerGroupDemo", {
projectId: "c6fef4c1-041f-43*****",
topicIdLists: ["bead2d9c*****"],
consumerGroupName: "test-gruopname",
heartbeatTtl: 10,
orderedConsume: true,
});
import pulumi
import pulumi_volcenginecc as volcenginecc
t_ls_consumer_group_demo = volcenginecc.tls.ConsumerGroup("TLSConsumerGroupDemo",
project_id="c6fef4c1-041f-43*****",
topic_id_lists=["bead2d9c*****"],
consumer_group_name="test-gruopname",
heartbeat_ttl=10,
ordered_consume=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.NewConsumerGroup(ctx, "TLSConsumerGroupDemo", &tls.ConsumerGroupArgs{
ProjectId: pulumi.String("c6fef4c1-041f-43*****"),
TopicIdLists: pulumi.StringArray{
pulumi.String("bead2d9c*****"),
},
ConsumerGroupName: pulumi.String("test-gruopname"),
HeartbeatTtl: pulumi.Int(10),
OrderedConsume: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var tLSConsumerGroupDemo = new Volcenginecc.Tls.ConsumerGroup("TLSConsumerGroupDemo", new()
{
ProjectId = "c6fef4c1-041f-43*****",
TopicIdLists = new[]
{
"bead2d9c*****",
},
ConsumerGroupName = "test-gruopname",
HeartbeatTtl = 10,
OrderedConsume = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.tls.ConsumerGroup;
import com.volcengine.volcenginecc.tls.ConsumerGroupArgs;
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 tLSConsumerGroupDemo = new ConsumerGroup("tLSConsumerGroupDemo", ConsumerGroupArgs.builder()
.projectId("c6fef4c1-041f-43*****")
.topicIdLists("bead2d9c*****")
.consumerGroupName("test-gruopname")
.heartbeatTtl(10)
.orderedConsume(true)
.build());
}
}
resources:
tLSConsumerGroupDemo:
type: volcenginecc:tls:ConsumerGroup
name: TLSConsumerGroupDemo
properties:
projectId: c6fef4c1-041f-43*****
topicIdLists:
- bead2d9c*****
consumerGroupName: test-gruopname
heartbeatTtl: 10
orderedConsume: true
Create ConsumerGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConsumerGroup(name: string, args: ConsumerGroupArgs, opts?: CustomResourceOptions);@overload
def ConsumerGroup(resource_name: str,
args: ConsumerGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConsumerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
consumer_group_name: Optional[str] = None,
heartbeat_ttl: Optional[int] = None,
ordered_consume: Optional[bool] = None,
project_id: Optional[str] = None,
topic_id_lists: Optional[Sequence[str]] = None)func NewConsumerGroup(ctx *Context, name string, args ConsumerGroupArgs, opts ...ResourceOption) (*ConsumerGroup, error)public ConsumerGroup(string name, ConsumerGroupArgs args, CustomResourceOptions? opts = null)
public ConsumerGroup(String name, ConsumerGroupArgs args)
public ConsumerGroup(String name, ConsumerGroupArgs args, CustomResourceOptions options)
type: volcenginecc:tls:ConsumerGroup
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 ConsumerGroupArgs
- 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 ConsumerGroupArgs
- 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 ConsumerGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConsumerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConsumerGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ConsumerGroup 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 ConsumerGroup resource accepts the following input properties:
- Consumer
Group stringName - Consumer group name.
- Heartbeat
Ttl int - Heartbeat timeout in seconds. Value range: 1~300.
- Ordered
Consume bool - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- Project
Id string - ID of the log project to which the consumer group belongs.
- Topic
Id List<string>Lists - List of log topic IDs to be consumed by the consumer group.
- Consumer
Group stringName - Consumer group name.
- Heartbeat
Ttl int - Heartbeat timeout in seconds. Value range: 1~300.
- Ordered
Consume bool - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- Project
Id string - ID of the log project to which the consumer group belongs.
- Topic
Id []stringLists - List of log topic IDs to be consumed by the consumer group.
- consumer
Group StringName - Consumer group name.
- heartbeat
Ttl Integer - Heartbeat timeout in seconds. Value range: 1~300.
- ordered
Consume Boolean - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project
Id String - ID of the log project to which the consumer group belongs.
- topic
Id List<String>Lists - List of log topic IDs to be consumed by the consumer group.
- consumer
Group stringName - Consumer group name.
- heartbeat
Ttl number - Heartbeat timeout in seconds. Value range: 1~300.
- ordered
Consume boolean - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project
Id string - ID of the log project to which the consumer group belongs.
- topic
Id string[]Lists - List of log topic IDs to be consumed by the consumer group.
- consumer_
group_ strname - Consumer group name.
- heartbeat_
ttl int - Heartbeat timeout in seconds. Value range: 1~300.
- ordered_
consume bool - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project_
id str - ID of the log project to which the consumer group belongs.
- topic_
id_ Sequence[str]lists - List of log topic IDs to be consumed by the consumer group.
- consumer
Group StringName - Consumer group name.
- heartbeat
Ttl Number - Heartbeat timeout in seconds. Value range: 1~300.
- ordered
Consume Boolean - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project
Id String - ID of the log project to which the consumer group belongs.
- topic
Id List<String>Lists - List of log topic IDs to be consumed by the consumer group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConsumerGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Name string - Name of the log project to which the consumer group belongs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Name string - Name of the log project to which the consumer group belongs.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Name String - Name of the log project to which the consumer group belongs.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Name string - Name of the log project to which the consumer group belongs.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
name str - Name of the log project to which the consumer group belongs.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Name String - Name of the log project to which the consumer group belongs.
Look up Existing ConsumerGroup Resource
Get an existing ConsumerGroup 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?: ConsumerGroupState, opts?: CustomResourceOptions): ConsumerGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
consumer_group_name: Optional[str] = None,
heartbeat_ttl: Optional[int] = None,
ordered_consume: Optional[bool] = None,
project_id: Optional[str] = None,
project_name: Optional[str] = None,
topic_id_lists: Optional[Sequence[str]] = None) -> ConsumerGroupfunc GetConsumerGroup(ctx *Context, name string, id IDInput, state *ConsumerGroupState, opts ...ResourceOption) (*ConsumerGroup, error)public static ConsumerGroup Get(string name, Input<string> id, ConsumerGroupState? state, CustomResourceOptions? opts = null)public static ConsumerGroup get(String name, Output<String> id, ConsumerGroupState state, CustomResourceOptions options)resources: _: type: volcenginecc:tls:ConsumerGroup 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.
- Consumer
Group stringName - Consumer group name.
- Heartbeat
Ttl int - Heartbeat timeout in seconds. Value range: 1~300.
- Ordered
Consume bool - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- Project
Id string - ID of the log project to which the consumer group belongs.
- Project
Name string - Name of the log project to which the consumer group belongs.
- Topic
Id List<string>Lists - List of log topic IDs to be consumed by the consumer group.
- Consumer
Group stringName - Consumer group name.
- Heartbeat
Ttl int - Heartbeat timeout in seconds. Value range: 1~300.
- Ordered
Consume bool - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- Project
Id string - ID of the log project to which the consumer group belongs.
- Project
Name string - Name of the log project to which the consumer group belongs.
- Topic
Id []stringLists - List of log topic IDs to be consumed by the consumer group.
- consumer
Group StringName - Consumer group name.
- heartbeat
Ttl Integer - Heartbeat timeout in seconds. Value range: 1~300.
- ordered
Consume Boolean - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project
Id String - ID of the log project to which the consumer group belongs.
- project
Name String - Name of the log project to which the consumer group belongs.
- topic
Id List<String>Lists - List of log topic IDs to be consumed by the consumer group.
- consumer
Group stringName - Consumer group name.
- heartbeat
Ttl number - Heartbeat timeout in seconds. Value range: 1~300.
- ordered
Consume boolean - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project
Id string - ID of the log project to which the consumer group belongs.
- project
Name string - Name of the log project to which the consumer group belongs.
- topic
Id string[]Lists - List of log topic IDs to be consumed by the consumer group.
- consumer_
group_ strname - Consumer group name.
- heartbeat_
ttl int - Heartbeat timeout in seconds. Value range: 1~300.
- ordered_
consume bool - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project_
id str - ID of the log project to which the consumer group belongs.
- project_
name str - Name of the log project to which the consumer group belongs.
- topic_
id_ Sequence[str]lists - List of log topic IDs to be consumed by the consumer group.
- consumer
Group StringName - Consumer group name.
- heartbeat
Ttl Number - Heartbeat timeout in seconds. Value range: 1~300.
- ordered
Consume Boolean - Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
- project
Id String - ID of the log project to which the consumer group belongs.
- project
Name String - Name of the log project to which the consumer group belongs.
- topic
Id List<String>Lists - List of log topic IDs to be consumed by the consumer group.
Import
$ pulumi import volcenginecc:tls/consumerGroup:ConsumerGroup example "project_id|consumer_group_name"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
