All Products
Search
Document Center

Function Compute:SourceRocketMQParameters

Last Updated:Jun 11, 2026

Parameter

Type

Description

Example

object

The custom event source configurations of ApsaraMQ for RocketMQ.

AuthType

string

The authentication type. Set the value to ACL or leave the value empty. The value ACL indicates that authentication is enabled. In this case, you must specify InstanceUsername and InstancePassword.

ACL

FilterType

string

The message filter type.

Tag

GroupID

string

The ID of the consumer group of the ApsaraMQ for RocketMQ instance.

GID_group1

InstanceEndpoint

string

The information about 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 ApsaraMQ for RocketMQ instance.

Cloud_5

InstanceUsername

string

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

6W0xz2uPfiwp****

InstanceVSwitchIds

string

The ID of the vSwitch associated with the instance.

vsw-uf6gwtbn6etadpvz7****

InstanceVpcId

string

The ID of the virtual private cloud (VPC) associated with the instance.

vpc-uf6of9452b2pba82c****

Offset

string

The consumer offset of the message. CONSUME_FROM_LAST_OFFSET: consumes messages from the latest offset. This is the default value. CONSUME_FROM_FIRST_OFFSET: consumes messages from the earliest offset. CONSUME_FROM_TIMESTAMP: consumes messages from the offset at the specified point in time.

CONSUME_FROM_TIMESTAMP

RegionId

string

The region to which the ApsaraMQ for RocketMQ queue belongs.

cn-shanghai

Tag

string

The tags that are used to filter messages.

test

Timestamp

integer

The timestamp. This parameter is valid only when you set Offset to CONSUME_FROM_TIMESTAMP.

1636597951964

Topic

string

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

myTopic