All Products
Search
Document Center

Function Compute:SourceRocketMQParameters

Last Updated:Aug 02, 2024
ParameterTypeDescriptionExample
object

The custom event source configurations of ApsaraMQ for RocketMQ.

AuthTypestring

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
FilterTypestring

The message filter type.

Tag
GroupIDstring

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

GID_group1
InstanceEndpointstring

The information about the endpoint of the ApsaraMQ for RocketMQ instance.

registry-vpc.cn-hangzhou.aliyuncs.com
InstanceIdstring

The ID of the ApsaraMQ for RocketMQ instance.

MQ_INST_164901546557****_BAAN****
InstanceNetworkstring

The network type.

PrivateNetwork
InstancePasswordstring

The password of the ApsaraMQ for RocketMQ instance.

123
InstanceSecurityGroupIdstring

The security group ID.

sg-hp35r2hc3a3sv8q2****
InstanceTypestring

The type of ApsaraMQ for RocketMQ instance.

Cloud_5
InstanceUsernamestring

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****
InstanceVSwitchIdsstring

The ID of the vSwitch associated with the instance.

vsw-uf6gwtbn6etadpvz7****
InstanceVpcIdstring

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

vpc-uf6of9452b2pba82c****
Offsetstring

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
RegionIdstring

The region to which the ApsaraMQ for RocketMQ queue belongs.

cn-shanghai
Tagstring

The tags that are used to filter messages.

test
Timestampinteger

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

1636597951964
Topicstring

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

myTopic