Volcano Engine Function as a Service
Parameter | Type | Required or Not | Sample value | Description |
Action | String | Yes | CreateKafkaTrigger | Interface name. The current API is called CreateKafkaTrigger. |
Version | String | Yes | 2024-06-06 | Interface version. The current version of the API is 2024-06-06. |
FunctionId | String | Yes | wrw****** | |
Name | String | Yes | reviews-consumer | Kafka trigger name.
|
Description | String | No | Example Kafka trigger | Kafka trigger description. The length is limited to 200 characters. |
MqInstanceId | String | Yes | kafka-cnngl4ifv****** | Message queue Kafka instance ID. You can call the DescribeInstances interface to obtain Kafka instance ID. |
TopicName | String | Yes | reviews-topic | Topic name of the message queue Kafka instance. You can call the DescribeTopics interface to obtain the Topic name of the Kafka instance. |
Enabled | Boolean | No | true | Whether to enable trigger while creating trigger. Value:
tip Only the trigger enabled can work properly. |
StartingPosition | String | No | Latest | Specify the location of the message when starting consuming messages in the Topic. Value:
|
MaximumRetryAttempts | Integer | No | 100 | The maximum number of retries when a function has running errors (including user code errors and Runtime errors). A positive integer with values ranging from 0 to 100. |
KafkaCredentials | Yes | | Kafka identity authentication. Function as a Service authenticates message consumption for both PLAIN and SCRAM-SHA-256 types of SASL users through the Kafka ACL permission policy. | |
BatchSize | Integer | No | 10 | The number of messages per batch for batch consumption of trigger. It is recommended that the value does not exceed 1,000. |
BatchFlushDurationMilliseconds | Integer | No | 1000 | The maximum waiting time for batch consumption of trigger. The unit is millisecond (ms), and the value range is 1,000-60,000 ms. The default value is 1,000 ms. warning This parameter only takes effect when the BatchSize parameter has been already configured. |
Parameter | Type | Required or Not | Sample value | Description |
Password | String | Yes | xxxxxxxxxx | The SASL/PLAIN user password set when creating Kafka instances. You can call the DescribeUsers interface to obtain Kafka instances SASL/PLAIN user password. |
Username | String | Yes | demo-name | The SASL/PLAIN user name set when creating the Kafka instance. You can call the DescribeUsers interface to obtain the Kafka instance SASL/PLAIN user name. |
Mechanism | String | Yes | PLAIN | Kafka authentication mechanism. Value:
|
Parameter | Type | Sample value | Description |
FunctionId | String | wrw****** | Function ID. |
Name | String | reviews-consumer | Kafka trigger name. |
Description | String | Example Kafka trigger | Kafka trigger description. |
Enabled | Boolean | true | Whether to enable Kafka trigger. Parameter value description:
|
MqInstanceId | String | kafka-cnngl4if****** | Message queue Kafka instance ID. |
TopicName | String | reviews-topic | Topic name of the message queue Kafka instance. |
StartingPosition | String | Latest | Start consuming the location of the message in the Topic. Parameter value description:
|
MaximumRetryAttempts | Integer | 100 | The maximum number of retries when a function has running errors. |
Id | String | 18lt**** | Kafka trigger ID. |
ConsumerGroup | String | reviews-topic_18lt**** | The consumption group name of message queue Kafka instance. |
Status | String | pending | Kafka trigger status. Parameter value description:
|
CreationTime | String | 2025-02-03 06:47:41.423691239 +0000 UTC | The creation time for Kafka trigger. |
LastUpdateTime | String | 2025-02-03 06:47:41.423691239 +0000 UTC | |
BatchSize | Integer | 10 | The number of messages per batch for batch consumption of trigger. |
BatchFlushDurationMilliseconds | Integer | 1000 | The maximum waiting time for batch consumption of trigger. The unit is millisecond. |