published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
A group of consumers with the same Group ID. When multiple consumers in the same Group consume a Topic, each message is delivered to only one consumer, enabling load balancing. Using Groups ensures that messages in a Topic are consumed in parallel.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
bMQGroupDemo:
type: volcenginecc:bmq:Group
name: BMQGroupDemo
properties:
description: this is test group
groupName: cBMQGroupDemo
instanceId: bmq-4ld4vpjzd32tq1gxxxxx
resetInfo:
topic_id: 5f81fcab96cb46c7955659fdxxxxx
reset_by: OFFSET
offset_type: LATEST
reset_value: 4
partition_id: 1
Create Group Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Group(name: string, args?: GroupArgs, opts?: CustomResourceOptions);@overload
def Group(resource_name: str,
args: Optional[GroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Group(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
group_name: Optional[str] = None,
instance_id: Optional[str] = None,
reset_info: Optional[GroupResetInfoArgs] = None)func NewGroup(ctx *Context, name string, args *GroupArgs, opts ...ResourceOption) (*Group, error)public Group(string name, GroupArgs? args = null, CustomResourceOptions? opts = null)type: volcenginecc:bmq:Group
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 GroupArgs
- 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 GroupArgs
- 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 GroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Group 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 Group resource accepts the following input properties:
- Description string
- Consumer Group description
- Group
Name string - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- Instance
Id string - BMQ instance ID
- Reset
Info Volcengine.Group Reset Info - Reset consumption offset information
- Description string
- Consumer Group description
- Group
Name string - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- Instance
Id string - BMQ instance ID
- Reset
Info GroupReset Info Args - Reset consumption offset information
- description String
- Consumer Group description
- group
Name String - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance
Id String - BMQ instance ID
- reset
Info GroupReset Info - Reset consumption offset information
- description string
- Consumer Group description
- group
Name string - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance
Id string - BMQ instance ID
- reset
Info GroupReset Info - Reset consumption offset information
- description str
- Consumer Group description
- group_
name str - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance_
id str - BMQ instance ID
- reset_
info GroupReset Info Args - Reset consumption offset information
- description String
- Consumer Group description
- group
Name String - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance
Id String - BMQ instance ID
- reset
Info Property Map - Reset consumption offset information
Outputs
All input properties are implicitly available as output properties. Additionally, the Group resource produces the following output properties:
- Created
Time string - Consumer Group creation time
- Group
Id string - Consumer Group ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - User ID of the Consumer Group owner
- Owner
Name string - Name of the Consumer Group owner
- Status string
- Consumer Group status
- Topic
Infos List<Volcengine.Group Topic Info>
- Created
Time string - Consumer Group creation time
- Group
Id string - Consumer Group ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - User ID of the Consumer Group owner
- Owner
Name string - Name of the Consumer Group owner
- Status string
- Consumer Group status
- Topic
Infos []GroupTopic Info
- created
Time String - Consumer Group creation time
- group
Id String - Consumer Group ID
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - User ID of the Consumer Group owner
- owner
Name String - Name of the Consumer Group owner
- status String
- Consumer Group status
- topic
Infos List<GroupTopic Info>
- created
Time string - Consumer Group creation time
- group
Id string - Consumer Group ID
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Id string - User ID of the Consumer Group owner
- owner
Name string - Name of the Consumer Group owner
- status string
- Consumer Group status
- topic
Infos GroupTopic Info[]
- created_
time str - Consumer Group creation time
- group_
id str - Consumer Group ID
- id str
- The provider-assigned unique ID for this managed resource.
- owner_
id str - User ID of the Consumer Group owner
- owner_
name str - Name of the Consumer Group owner
- status str
- Consumer Group status
- topic_
infos Sequence[GroupTopic Info]
- created
Time String - Consumer Group creation time
- group
Id String - Consumer Group ID
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - User ID of the Consumer Group owner
- owner
Name String - Name of the Consumer Group owner
- status String
- Consumer Group status
- topic
Infos List<Property Map>
Look up Existing Group Resource
Get an existing Group 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?: GroupState, opts?: CustomResourceOptions): Group@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
group_id: Optional[str] = None,
group_name: Optional[str] = None,
instance_id: Optional[str] = None,
owner_id: Optional[str] = None,
owner_name: Optional[str] = None,
reset_info: Optional[GroupResetInfoArgs] = None,
status: Optional[str] = None,
topic_infos: Optional[Sequence[GroupTopicInfoArgs]] = None) -> Groupfunc GetGroup(ctx *Context, name string, id IDInput, state *GroupState, opts ...ResourceOption) (*Group, error)public static Group Get(string name, Input<string> id, GroupState? state, CustomResourceOptions? opts = null)public static Group get(String name, Output<String> id, GroupState state, CustomResourceOptions options)resources: _: type: volcenginecc:bmq:Group 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.
- Created
Time string - Consumer Group creation time
- Description string
- Consumer Group description
- Group
Id string - Consumer Group ID
- Group
Name string - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- Instance
Id string - BMQ instance ID
- Owner
Id string - User ID of the Consumer Group owner
- Owner
Name string - Name of the Consumer Group owner
- Reset
Info Volcengine.Group Reset Info - Reset consumption offset information
- Status string
- Consumer Group status
- Topic
Infos List<Volcengine.Group Topic Info>
- Created
Time string - Consumer Group creation time
- Description string
- Consumer Group description
- Group
Id string - Consumer Group ID
- Group
Name string - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- Instance
Id string - BMQ instance ID
- Owner
Id string - User ID of the Consumer Group owner
- Owner
Name string - Name of the Consumer Group owner
- Reset
Info GroupReset Info Args - Reset consumption offset information
- Status string
- Consumer Group status
- Topic
Infos []GroupTopic Info Args
- created
Time String - Consumer Group creation time
- description String
- Consumer Group description
- group
Id String - Consumer Group ID
- group
Name String - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance
Id String - BMQ instance ID
- owner
Id String - User ID of the Consumer Group owner
- owner
Name String - Name of the Consumer Group owner
- reset
Info GroupReset Info - Reset consumption offset information
- status String
- Consumer Group status
- topic
Infos List<GroupTopic Info>
- created
Time string - Consumer Group creation time
- description string
- Consumer Group description
- group
Id string - Consumer Group ID
- group
Name string - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance
Id string - BMQ instance ID
- owner
Id string - User ID of the Consumer Group owner
- owner
Name string - Name of the Consumer Group owner
- reset
Info GroupReset Info - Reset consumption offset information
- status string
- Consumer Group status
- topic
Infos GroupTopic Info[]
- created_
time str - Consumer Group creation time
- description str
- Consumer Group description
- group_
id str - Consumer Group ID
- group_
name str - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance_
id str - BMQ instance ID
- owner_
id str - User ID of the Consumer Group owner
- owner_
name str - Name of the Consumer Group owner
- reset_
info GroupReset Info Args - Reset consumption offset information
- status str
- Consumer Group status
- topic_
infos Sequence[GroupTopic Info Args]
- created
Time String - Consumer Group creation time
- description String
- Consumer Group description
- group
Id String - Consumer Group ID
- group
Name String - Set a custom Consumer Group name. Constraints: Only lowercase English letters, numbers, underscores, and hyphens (-) are allowed. Length must be 3–64 characters.
- instance
Id String - BMQ instance ID
- owner
Id String - User ID of the Consumer Group owner
- owner
Name String - Name of the Consumer Group owner
- reset
Info Property Map - Reset consumption offset information
- status String
- Consumer Group status
- topic
Infos List<Property Map>
Supporting Types
GroupResetInfo, GroupResetInfoArgs
- Offset
Type string - If the reset mode is OFFSET, this parameter is required. Specify the reference consumption position for resuming consumption. Options: EARLIEST: Reference position is the earliest offset. CURRENT: Reference position is the current offset. LATEST: Reference position is the latest offset.
- Partition
Id int - Partition number
- Reset
By string - Reset mode. Options: TIMESTAMP: Reset the consumption offset based on a timestamp. Specify a past or future time to jump directly to the offset at that time and start consuming. OFFSET: Reset the consumption offset based on a specified offset, starting consumption from that offset. You can specify the offset using the offsetType parameter.
- Reset
Value int - Reset value. If TIMESTAMP is selected, this value is the timestamp for resuming consumption, e.g., 1722224612000. If OFFSET is selected, this value is the relative offset from the reference offset in OffsetType, e.g., 100.
- Topic
Id string - Topic ID。
- Offset
Type string - If the reset mode is OFFSET, this parameter is required. Specify the reference consumption position for resuming consumption. Options: EARLIEST: Reference position is the earliest offset. CURRENT: Reference position is the current offset. LATEST: Reference position is the latest offset.
- Partition
Id int - Partition number
- Reset
By string - Reset mode. Options: TIMESTAMP: Reset the consumption offset based on a timestamp. Specify a past or future time to jump directly to the offset at that time and start consuming. OFFSET: Reset the consumption offset based on a specified offset, starting consumption from that offset. You can specify the offset using the offsetType parameter.
- Reset
Value int - Reset value. If TIMESTAMP is selected, this value is the timestamp for resuming consumption, e.g., 1722224612000. If OFFSET is selected, this value is the relative offset from the reference offset in OffsetType, e.g., 100.
- Topic
Id string - Topic ID。
- offset
Type String - If the reset mode is OFFSET, this parameter is required. Specify the reference consumption position for resuming consumption. Options: EARLIEST: Reference position is the earliest offset. CURRENT: Reference position is the current offset. LATEST: Reference position is the latest offset.
- partition
Id Integer - Partition number
- reset
By String - Reset mode. Options: TIMESTAMP: Reset the consumption offset based on a timestamp. Specify a past or future time to jump directly to the offset at that time and start consuming. OFFSET: Reset the consumption offset based on a specified offset, starting consumption from that offset. You can specify the offset using the offsetType parameter.
- reset
Value Integer - Reset value. If TIMESTAMP is selected, this value is the timestamp for resuming consumption, e.g., 1722224612000. If OFFSET is selected, this value is the relative offset from the reference offset in OffsetType, e.g., 100.
- topic
Id String - Topic ID。
- offset
Type string - If the reset mode is OFFSET, this parameter is required. Specify the reference consumption position for resuming consumption. Options: EARLIEST: Reference position is the earliest offset. CURRENT: Reference position is the current offset. LATEST: Reference position is the latest offset.
- partition
Id number - Partition number
- reset
By string - Reset mode. Options: TIMESTAMP: Reset the consumption offset based on a timestamp. Specify a past or future time to jump directly to the offset at that time and start consuming. OFFSET: Reset the consumption offset based on a specified offset, starting consumption from that offset. You can specify the offset using the offsetType parameter.
- reset
Value number - Reset value. If TIMESTAMP is selected, this value is the timestamp for resuming consumption, e.g., 1722224612000. If OFFSET is selected, this value is the relative offset from the reference offset in OffsetType, e.g., 100.
- topic
Id string - Topic ID。
- offset_
type str - If the reset mode is OFFSET, this parameter is required. Specify the reference consumption position for resuming consumption. Options: EARLIEST: Reference position is the earliest offset. CURRENT: Reference position is the current offset. LATEST: Reference position is the latest offset.
- partition_
id int - Partition number
- reset_
by str - Reset mode. Options: TIMESTAMP: Reset the consumption offset based on a timestamp. Specify a past or future time to jump directly to the offset at that time and start consuming. OFFSET: Reset the consumption offset based on a specified offset, starting consumption from that offset. You can specify the offset using the offsetType parameter.
- reset_
value int - Reset value. If TIMESTAMP is selected, this value is the timestamp for resuming consumption, e.g., 1722224612000. If OFFSET is selected, this value is the relative offset from the reference offset in OffsetType, e.g., 100.
- topic_
id str - Topic ID。
- offset
Type String - If the reset mode is OFFSET, this parameter is required. Specify the reference consumption position for resuming consumption. Options: EARLIEST: Reference position is the earliest offset. CURRENT: Reference position is the current offset. LATEST: Reference position is the latest offset.
- partition
Id Number - Partition number
- reset
By String - Reset mode. Options: TIMESTAMP: Reset the consumption offset based on a timestamp. Specify a past or future time to jump directly to the offset at that time and start consuming. OFFSET: Reset the consumption offset based on a specified offset, starting consumption from that offset. You can specify the offset using the offsetType parameter.
- reset
Value Number - Reset value. If TIMESTAMP is selected, this value is the timestamp for resuming consumption, e.g., 1722224612000. If OFFSET is selected, this value is the relative offset from the reference offset in OffsetType, e.g., 100.
- topic
Id String - Topic ID。
GroupTopicInfo, GroupTopicInfoArgs
- Create
Time string - Topic creation time
- Description string
- Topic description
- Lag int
- Number of unconsumed messages in the Topic
- Partition
Infos List<Volcengine.Group Topic Info Partition Info> - Partitions int
- Number of Topic partitions
- Retention int
- Retention period of data in the Topic, in hours
- Status string
- Topic status
- Topic
Id string - Topic ID。
- Topic
Name string - Topic name
- Create
Time string - Topic creation time
- Description string
- Topic description
- Lag int
- Number of unconsumed messages in the Topic
- Partition
Infos []GroupTopic Info Partition Info - Partitions int
- Number of Topic partitions
- Retention int
- Retention period of data in the Topic, in hours
- Status string
- Topic status
- Topic
Id string - Topic ID。
- Topic
Name string - Topic name
- create
Time String - Topic creation time
- description String
- Topic description
- lag Integer
- Number of unconsumed messages in the Topic
- partition
Infos List<GroupTopic Info Partition Info> - partitions Integer
- Number of Topic partitions
- retention Integer
- Retention period of data in the Topic, in hours
- status String
- Topic status
- topic
Id String - Topic ID。
- topic
Name String - Topic name
- create
Time string - Topic creation time
- description string
- Topic description
- lag number
- Number of unconsumed messages in the Topic
- partition
Infos GroupTopic Info Partition Info[] - partitions number
- Number of Topic partitions
- retention number
- Retention period of data in the Topic, in hours
- status string
- Topic status
- topic
Id string - Topic ID。
- topic
Name string - Topic name
- create_
time str - Topic creation time
- description str
- Topic description
- lag int
- Number of unconsumed messages in the Topic
- partition_
infos Sequence[GroupTopic Info Partition Info] - partitions int
- Number of Topic partitions
- retention int
- Retention period of data in the Topic, in hours
- status str
- Topic status
- topic_
id str - Topic ID。
- topic_
name str - Topic name
- create
Time String - Topic creation time
- description String
- Topic description
- lag Number
- Number of unconsumed messages in the Topic
- partition
Infos List<Property Map> - partitions Number
- Number of Topic partitions
- retention Number
- Retention period of data in the Topic, in hours
- status String
- Topic status
- topic
Id String - Topic ID。
- topic
Name String - Topic name
GroupTopicInfoPartitionInfo, GroupTopicInfoPartitionInfoArgs
- Current
Offset int - Current consumption offset
- Group
Name string - Consumer Group name
- Lag int
- Number of unconsumed messages in the partition
- Latest
Offset int - Latest consumption offset
- Partition
Id int - Partition number
- Topic
Name string - Name of the Topic subscribed by the Consumer Group
- Current
Offset int - Current consumption offset
- Group
Name string - Consumer Group name
- Lag int
- Number of unconsumed messages in the partition
- Latest
Offset int - Latest consumption offset
- Partition
Id int - Partition number
- Topic
Name string - Name of the Topic subscribed by the Consumer Group
- current
Offset Integer - Current consumption offset
- group
Name String - Consumer Group name
- lag Integer
- Number of unconsumed messages in the partition
- latest
Offset Integer - Latest consumption offset
- partition
Id Integer - Partition number
- topic
Name String - Name of the Topic subscribed by the Consumer Group
- current
Offset number - Current consumption offset
- group
Name string - Consumer Group name
- lag number
- Number of unconsumed messages in the partition
- latest
Offset number - Latest consumption offset
- partition
Id number - Partition number
- topic
Name string - Name of the Topic subscribed by the Consumer Group
- current_
offset int - Current consumption offset
- group_
name str - Consumer Group name
- lag int
- Number of unconsumed messages in the partition
- latest_
offset int - Latest consumption offset
- partition_
id int - Partition number
- topic_
name str - Name of the Topic subscribed by the Consumer Group
- current
Offset Number - Current consumption offset
- group
Name String - Consumer Group name
- lag Number
- Number of unconsumed messages in the partition
- latest
Offset Number - Latest consumption offset
- partition
Id Number - Partition number
- topic
Name String - Name of the Topic subscribed by the Consumer Group
Import
$ pulumi import volcenginecc:bmq/group:Group example "group_id"
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
