All Products
Search
Document Center

Function Compute:SourceRocketMQParameters

Last Updated:Aug 28, 2026

Parameter

Type

Description

Example

object

Custom event source parameters for ApsaraMQ for RocketMQ.

AuthType

string

The authentication type. Valid values: ACL and empty. ACL enables authentication and requires InstanceUsername and InstancePassword.

ACL

FilterType

string

The message filter type.

Tag

GroupID

string

The consumer group ID of the ApsaraMQ for RocketMQ instance.

GID_group1

InstanceEndpoint

string

The endpoint of the ApsaraMQ for RocketMQ instance.

registry-vpc.cn-hangzhou.aliyuncs.com

InstanceId

string

The ID of the ApsaraMQ for RocketMQ instance.

MQ_INST_164901546557****_BAAN****

InstanceNetwork

string

The network type.

PrivateNetwork

InstancePassword

string

The password of the ApsaraMQ for RocketMQ instance.

123

InstanceSecurityGroupId

string

The security group ID.

sg-hp35r2hc3a3sv8q2****

InstanceType

string

The type of the ApsaraMQ for RocketMQ instance.

Cloud_5

InstanceUsername

string

The username of the ApsaraMQ for RocketMQ instance. If you connect over the Internet, you must configure the username and password in the SDK code for authentication.

6W0xz2uPfiwp****

InstanceVSwitchIds

string

The vSwitch ID of the instance.

vsw-uf6gwtbn6etadpvz7****

InstanceVpcId

string

The VPC ID of the instance.

vpc-uf6of9452b2pba82c****

Offset

string

The consumer offset of messages. Valid values: CONSUME_FROM_LAST_OFFSET (default): starts from the latest offset. CONSUME_FROM_FIRST_OFFSET: starts from the earliest offset. CONSUME_FROM_TIMESTAMP: starts from the offset at a specified point in time.

CONSUME_FROM_TIMESTAMP

RegionId

string

The region of the ApsaraMQ for RocketMQ instance.

cn-shanghai

Tag

string

The tags used to filter messages.

test

Timestamp

integer

The timestamp. Valid only when Offset is set to CONSUME_FROM_TIMESTAMP.

1636597951964

Topic

string

The name of the topic in the ApsaraMQ for RocketMQ instance.

myTopic