1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. tls
  6. ConsumerGroup
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
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:

    ConsumerGroupName string
    Consumer group name.
    HeartbeatTtl int
    Heartbeat timeout in seconds. Value range: 1~300.
    OrderedConsume 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.
    ProjectId string
    ID of the log project to which the consumer group belongs.
    TopicIdLists List<string>
    List of log topic IDs to be consumed by the consumer group.
    ConsumerGroupName string
    Consumer group name.
    HeartbeatTtl int
    Heartbeat timeout in seconds. Value range: 1~300.
    OrderedConsume 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.
    ProjectId string
    ID of the log project to which the consumer group belongs.
    TopicIdLists []string
    List of log topic IDs to be consumed by the consumer group.
    consumerGroupName String
    Consumer group name.
    heartbeatTtl Integer
    Heartbeat timeout in seconds. Value range: 1~300.
    orderedConsume 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.
    projectId String
    ID of the log project to which the consumer group belongs.
    topicIdLists List<String>
    List of log topic IDs to be consumed by the consumer group.
    consumerGroupName string
    Consumer group name.
    heartbeatTtl number
    Heartbeat timeout in seconds. Value range: 1~300.
    orderedConsume 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.
    projectId string
    ID of the log project to which the consumer group belongs.
    topicIdLists string[]
    List of log topic IDs to be consumed by the consumer group.
    consumer_group_name str
    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_lists Sequence[str]
    List of log topic IDs to be consumed by the consumer group.
    consumerGroupName String
    Consumer group name.
    heartbeatTtl Number
    Heartbeat timeout in seconds. Value range: 1~300.
    orderedConsume 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.
    projectId String
    ID of the log project to which the consumer group belongs.
    topicIdLists List<String>
    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.
    ProjectName string
    Name of the log project to which the consumer group belongs.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectName string
    Name of the log project to which the consumer group belongs.
    id String
    The provider-assigned unique ID for this managed resource.
    projectName String
    Name of the log project to which the consumer group belongs.
    id string
    The provider-assigned unique ID for this managed resource.
    projectName 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.
    projectName 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) -> ConsumerGroup
    func 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.
    The following state arguments are supported:
    ConsumerGroupName string
    Consumer group name.
    HeartbeatTtl int
    Heartbeat timeout in seconds. Value range: 1~300.
    OrderedConsume 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.
    ProjectId string
    ID of the log project to which the consumer group belongs.
    ProjectName string
    Name of the log project to which the consumer group belongs.
    TopicIdLists List<string>
    List of log topic IDs to be consumed by the consumer group.
    ConsumerGroupName string
    Consumer group name.
    HeartbeatTtl int
    Heartbeat timeout in seconds. Value range: 1~300.
    OrderedConsume 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.
    ProjectId string
    ID of the log project to which the consumer group belongs.
    ProjectName string
    Name of the log project to which the consumer group belongs.
    TopicIdLists []string
    List of log topic IDs to be consumed by the consumer group.
    consumerGroupName String
    Consumer group name.
    heartbeatTtl Integer
    Heartbeat timeout in seconds. Value range: 1~300.
    orderedConsume 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.
    projectId String
    ID of the log project to which the consumer group belongs.
    projectName String
    Name of the log project to which the consumer group belongs.
    topicIdLists List<String>
    List of log topic IDs to be consumed by the consumer group.
    consumerGroupName string
    Consumer group name.
    heartbeatTtl number
    Heartbeat timeout in seconds. Value range: 1~300.
    orderedConsume 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.
    projectId string
    ID of the log project to which the consumer group belongs.
    projectName string
    Name of the log project to which the consumer group belongs.
    topicIdLists string[]
    List of log topic IDs to be consumed by the consumer group.
    consumer_group_name str
    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_lists Sequence[str]
    List of log topic IDs to be consumed by the consumer group.
    consumerGroupName String
    Consumer group name.
    heartbeatTtl Number
    Heartbeat timeout in seconds. Value range: 1~300.
    orderedConsume 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.
    projectId String
    ID of the log project to which the consumer group belongs.
    projectName String
    Name of the log project to which the consumer group belongs.
    topicIdLists List<String>
    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 volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.