CreateEventStreaming

Updated at:

Creates an event stream.

Operation description

Creates an event stream.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eventbridge:CreateEventStreaming

create

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None

Request parameters

Parameter

Type

Required

Description

Example

ResourceGroupId

string

No

The ID of the resource group. If you do not specify this parameter, the created event stream belongs to the default resource group of the account.

rg-acfmxazb4ph6aiy****

EventStreamingName

string

Yes

The name of the event stream.

my_streaming

Description

string

No

The description of the event stream.

rocketmq2mns

FilterPattern

string

No

The event filtering rule. If you do not specify this parameter, all events are matched.

{ "source": [ { "prefix": "acs:mns" } ], "type": [ { "prefix": "mns:Queue" } ], "subject": [ { "prefix": "acs:mns:cn-hangzhou:123456789098****:queues/zeus" } ] }

Source

object

No

The event provider. You must specify exactly one source.

SourceMNSParameters

object

No

The parameters for the Message Service (MNS) source.

RegionId

string

No

The region ID.

cn-beijing

QueueName

string

No

The name of the queue.

queue_api_1642474203601

IsBase64Decode

boolean

No

Specifies whether to enable Base64 encoding. Default value: true.

true

SourceRabbitMQParameters

object

No

The ApsaraMQ for RabbitMQ source.

RegionId

string

No

The region ID.

cn-hangzhou

InstanceId

string

No

The instance ID of the Message Queue for RabbitMQ instance.

gtm-cn-k2c2yfg****

VirtualHostName

string

No

The name of the vhost in the Message Queue for RabbitMQ instance.

eb-connect

QueueName

string

No

The name of the queue in the Message Queue for RabbitMQ instance.

demo

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchIds

string

No

The list of vSwitch IDs.

vsw-bp179l3llg3jjxwrq72****

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

NetworkType

string

No

The network type.

PrivateNetwork

SourceKafkaParameters

object

No

The ApsaraMQ for Kafka source.

RegionId

string

No

The region ID.

cn-hangzhou

InstanceId

string

No

The instance ID.

r-8vb64581862c****

Topic

string

No

The name of the topic.

popvip_center_robot_order

ConsumerGroup

string

No

The ID of the consumer group that subscribes to the topic.

DEFAULT_GROUP

OffsetReset

string

No

The offset.

latest

Network

string

No

The network configuration. Default value: Default. For VPC networks, the value is PublicNetwork.

Valid values:

  • PublicNetwork
  • Default

Default

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchIds

string

No

The vSwitch IDs.

vsw-bp179l3llg3jjxwrq72****

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

ValueDataType

string

No

The encoding and decoding format of the message body. Valid values:

  • JSON

  • Text

  • Binary

JSON

SourceRocketMQParameters

object

No

The ApsaraMQ for RocketMQ source.

RegionId

string

No

The region ID.

cn-qingdao

InstanceId

string

No

The region to which the Message Queue for RocketMQ instance belongs.

default_C56C36026****

Topic

string

No

The topic of the message service.

Topic_publicRule_api_1667273421288

Tag

string

No

The filter tag of the message.

test

Offset

string

No

The consumption offset of the message. Valid values:

  • CONSUME_FROM_LAST_OFFSET: Consumes messages from the latest offset.

  • CONSUME_FROM_FIRST_OFFSET: Consumes messages from the earliest offset.

  • CONSUME_FROM_TIMESTAMP: Consumes messages from the offset at a specified timestamp.

Default value: CONSUME_FROM_LAST_OFFSET.

CONSUMEFROMLAST_OFFSET

GroupID

string

No

The group ID of Message Queue for RocketMQ.

GID_group1

Timestamp

integer

No

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

1670656652009

InstanceType

string

No

The instance type. Valid values:

  • Cloud_4: ApsaraMQ for RocketMQ 4.0 instance (default)

  • Cloud_5: ApsaraMQ for RocketMQ 5.0 instance

  • SelfBuilt: Self-managed Apache RocketMQ cluster

Cloud_4

InstanceEndpoint

string

No

The endpoint of the instance.

reg****-vpc.cn-zhangjiakou.aliyuncs.com

InstanceUsername

string

No

The username of the instance.

admin

InstancePassword

string

No

The password of the instance.

admin

Network

string

No

The network type. Valid values:

  • PublicNetwork

  • PrivateNetwork

Valid values:

  • PrivateNetwork :

    PrivateNetwork

  • PublicNetwork :

    PublicNetwork

PrivateNetwork

FilterType

string

No

The message filtering type.

Tag

FilterSql

string

No

The SQL filter statement.

index > 10

AuthType

string

No

The authentication type.

ACL

VpcId

string

No

The VPC ID for the cross-border task.

vpc-m5e3sv4b12345****

VSwitchIds

string

No

The vSwitch IDs for the cross-border task.

vsw-m5ev8asdc6h12345****

SecurityGroupId

string

No

The security group for the cross-border task.

sg-m5edtu24f12345****

InstanceVpcId

string

No

The VPC information of the instance.

vpc-m5e3sv4b12345****

InstanceVSwitchIds

string

No

The vSwitch information of the instance.

vsw-m5ev8asdc6h123456****

InstanceSecurityGroupId

string

No

The security group information of the instance.

sg-m5edtu24f12345****

InstanceNetwork

string

No

The network information of the instance. Valid values:

  • PublicNetwork

  • PrivateNetwork

PublicNetwork

BodyDataType

string

No

The message encoding format. Valid values:

  • JSON

  • Text

  • Binary

JSON

SourceRocketMQCheckpointParameters

object

No

The ApsaraMQ for RocketMQ checkpoint source.

RegionId

string

No

The region ID.

cn-hangzhou

InstanceType

string

No

The instance type.

Cloud_4

InstanceId

string

No

The instance ID.

r-8vb64581862c****

Topics

array

No

The message topic.

string

No

The message topic.

myTopic

SourceApacheRocketMQCheckpointParameters

object

No

The ApsaraMQ for RocketMQ checkpoint source.

RegionId

string

No

The region ID.

cn-hangzhou

Topics

array

No

The message topic.

string

No

The message topic.

myTopic

InstanceEndpoint

string

No

The endpoint of the instance.

reg****-vpc.cn-zhangjiakou.aliyuncs.com

InstanceUsername

string

No

The username of the instance.

admin

InstancePassword

string

No

The password of the instance.

admin

NetworkType

string

No

The network type.

PrivateNetwork

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchId

string

No

The vSwitch IDs.

"VSwitchId"

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

SourceMQTTParameters

object

No

The MQTT event source.

RegionId

string

No

The region ID.

cn-shenzhen

InstanceId

string

No

The instance ID.

r-bp1b5ncun5lqer****

Topic

string

No

The topic of the message.

CANAL_VICUTU_UAT

BodyDataType

string

No

The encoding format of the message. Valid values:

  • JSON

  • Text

  • Binary

JSON

NetworkType

string

No

The network type.

PrivateNetwork

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchIds

string

No

The list of vSwitch IDs.

vsw-bp179l3llg3jjxwrq72****

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

SourceDTSParameters

object

No

The DTS event source.

TaskId

string

No

The task ID.

f86e5814-b223-482c-b768-3b873297****

BrokerUrl

string

No

The network address and port number of the data subscription channel.

"BrokerUrl"

Topic

string

No

The subscription topic of the data subscription channel.

LTC_CACHE_PRD

Sid

string

No

The consumer group ID.

HD3

Username

string

No

The username of the consumer group.

admin

Password

string

No

The password of the consumer group.

admin

InitCheckPoint

integer

No

The consumption checkpoint, which is the timestamp when the SDK client consumes the first piece of data. The value is a UNIX timestamp.

1620962769

SourceSLSParameters

object

No

The SLS event source.

Project

string

No

The SLS project.

test

LogStore

string

No

The SLS Logstore.

sas-log

ConsumePosition

string

No

The start consumption checkpoint. You can specify the earliest checkpoint (begin), the latest checkpoint (end), or a specific timestamp in seconds.

end

RoleName

string

No

To grant authorization for the event bus EventBridge to use this role to read SLS logs, the following conditions must be met: when you create the role for the service in the Resource Access Management (RAM) console, you must select Alibaba Cloud Service, and select Event Bus as the trusted service.

testRole

SourcePrometheusParameters

object

No

The Prometheus event source.

RegionId

string

No

The region ID.

cn-hangzhou

ClusterId

string

No

The cluster ID.

c83555068b6******ad213f565f209

DataType

string

No

The data type.

JSON

Labels

string

No

The labels.

__name__=.*

RoleName

string

No

To grant authorization for the event bus EventBridge to use this role to read SLS logs, the following conditions must be met: when you create the role for the service in the Resource Access Management (RAM) console, you must select Alibaba Cloud Service, and select Event Bus as the trusted service.

eventbridge_oss_role

ExternalLabels

string

No

The external labels.

"ExternalLabels"

SourceCustomizedKafkaParameters

object

No

The custom Kafka event source.

InstanceId

string

No

The instance ID of MSMQ for Apache Kafka.

r-8vb64581862c****

SourceCustomizedKafkaConnectorParameters

object

No

The custom Apache Kafka connector event source.

ConnectorPackageUrl

string

No

The download URL of the ZIP package in OSS.

"https://examplebucket.oss-cn-hangzhou.aliyuncs.com/testDoc/Old_Homebrew/2024-06-26%2022%3A34%3A08/opt/homebrew/homebrew/Library/Homebrew/test/support/fixtures/cask/AppWithBinary.zip?OSSAccessKeyId=ri&Expires=1725539627&Signature=rb8q3OpV2i3gZJ"

WorkerParameters

object

No

The Kafka instance configurations.

{ "group.id": "connect-eb-cluster-KAFKA_CONNECTORC", "offset.storage.topic": "connect-eb-offset-KAFKA_CONNECTOR_yjqC8K5ewC", "config.storage.topic": "connect-eb-config-KAFKA_CONNECTOR_yjqC8K5ewC", "status.storage.topic": "connect-eb-status-KAFKA_CONNECTOR_yjqC8K5ewC", "consumer.group.id": "connector-eb-cluster-KAFKA_CONNECTOR_yjqC8K5ewC-mongo-sink", "bootstrap.servers": "alikafka-post:9092" }

ConnectorParameters

object

No

The connector parameters.

Name

string

No

The connector name.

test-name

Config

object

No

The connector configurations.

{ "connector.class": "com.mongodb.kafka.connect.MongoSinkConnector", "tasks.max": "1", "topics": "sourceA,sourceB" }

SourceApacheKafkaParameters

object

No

The open-source Kafka parameter settings.

Bootstraps

string

No

The endpoints.

"Bootstraps"

Topic

string

No

The topic name.

LTC_CACHE_PRD

ConsumerGroup

string

No

The consumer group name.

DEFAULT_GROUP

OffsetReset

string

No

The offset reset policy. Valid values:

  • latest: The system reads data from the latest offset.

  • earliest: The system reads data from the earliest offset. This value is supported only when an unused consumer group is initialized for the first time.

latest

ValueDataType

string

No

The data type. Valid values:

  • Text

  • Binary

  • Json

JSON

VpcId

string

No

The VPC ID of the Kafka source.

vpc-8vblalsi0vbhizr77****

VSwitchIds

string

No

The list of vSwitch IDs.

vsw-bp179l3llg3jjxwrq72****

SecurityGroupId

string

No

The security group ID of the Kafka source.

sg-bp1iv19sp1msc7zot4****

NetworkType

string

No

The Kafka network type.

PrivateNetwork

SecurityProtocol

string

No

The Kafka security protocol type. Valid values:

  • SASL_SSL

  • PLAINTEXT

  • SASL_PLAINTEXT

SASL_SSL

SaslMechanism

string

No

The Kafka SASL authentication mechanism.

"SaslMechanism"

SaslUser

string

No

The username for Kafka SASL authentication.

"SaslUser"

SaslPassword

string

No

The password for Kafka SASL authentication.

yourPassword

SslKeystoreCertificateChain

string

No

[Required for mutual authentication] Kafka client certificate chain. This parameter is required when mutual SSL authentication (ssl.client.auth=required) is enabled on the Kafka server. Format requirements: Base64-encoded PEM format, containing the client certificate and the complete certificate chain (client certificate first, intermediate CA certificates next, and root CA certificate optional). Note: Ensure that each PEM file content starts with '-----BEGIN CERTIFICATE-----' and ends with '-----END CERTIFICATE-----' before concatenating and Base64 encoding.

"SslKeystoreCertificateChain"

SslKeyPassword

string

No

[Required for encrypted private keys] Kafka client private key password. This password is required when the client private key is encrypted (that is, the PEM file contains the 'Proc-Type: 4,ENCRYPTED' or 'ENCRYPTED' tag). Leave it empty if the private key is not encrypted. Note: This password is used only to decrypt the private key and is unrelated to Kafka authentication.

yourPassword

SslTruststoreCertificates

string

No

[Required for SSL] Kafka server trust certificate. Used to authenticate the validity of the Kafka broker's SSL certificate and prevent man-in-the-middle attacks. Format requirements: PEM format with Base64 encoding, typically containing the Kafka server's CA certificate or the server certificate itself. Example: Perform Base64 encoding on the PEM file content of the CA certificate (ensure it starts with '-----BEGIN CERTIFICATE-----' and ends with '-----END CERTIFICATE-----'). If Kafka uses a self-signed certificate, provide the CA certificate that issued it.

"SslTruststoreCertificates"

SslKeystoreKey

object

No

[Required for bidirectional authentication] SSL private key configuration object. The client private key is required when bidirectional SSL authentication is enabled on the Kafka server. Only KMS pattern is supported for the key: specify the Key Management Service (KMS) EPS resource that stores the private key by using KmsArn. The system retrieves the private key content from KMS only in memory, which provides higher security. Configuration example: {"KmsArn": "acs:kms:cn-hangzhou:123456789:secret/ssl-key-xxxx", "KmsSecretValueKey": "keystore_private_key"}.

KmsArn

string

No

[Required] ARN of the KMS resource that stores the SSL private key. Used to locate the KMS instance that stores the client private key. Format example: 'acs:kms:cn-hangzhou:123456789:secret/ssl-keystore-key-xxxx'. How to obtain: View the ARN information of the corresponding key in the KMS console.

"KmsArn"

KmsSecretValueKey

string

No

[KMS KV mode] Key name in the KMS secret. When the secret stored in KMS is a key-value (KV) pair, specify this parameter to indicate the key corresponding to the SSL private key. Example: If the KMS secret is '{"ssl_keystore_key":"-----BEGIN PRIVATE KEY-----...","ssl_truststore_key":"..."}', enter 'ssl_keystore_key'. If the KMS secret is in plaintext mode (directly storing the PEM content of the private key), leave this parameter empty.

"KmsSecretValueKey"

SourceOSSParameters

object

No

The OSS event source.

RoleName

string

No

The name of the role that grants authorization to the EventBridge event bus to read OSS files. The role must have at least read-only permissions on OSS.

eventbridge_oss_role

BucketName

string

No

The name of the Object Storage Service (OSS) bucket.

bucket_abc

Prefix

string

No

The file path prefix.

fun/document/

LoadMode

string

No

The data loading mode. A value of single indicates single-document loading, and a value of element indicates chunk loading. Valid values: single and element. Default value: single.

Valid values:

  • single :

    single

  • element :

    element

single

LoadFormat

string

No

The document loader.

Valid values:

  • TextLoader :

    TextLoader

TextLoader

Delimiter

string

No

The delimiter. In chunk loading mode, this delimiter is used as the chunk identifier for text. By default, the newline character (\n) is used as the delimiter.

\n

FileExtensions

array

No

The file extension whitelist.

["pdf","docx"]

string

No

The file extension.

pdf

SourceOpenSourceRabbitMQParameters

object

No

The self-managed RabbitMQ source parameters.

Endpoint

string

No

The endpoint.

"Endpoint"

VirtualHostName

string

No

The name of the vhost for the ApsaraMQ for RabbitMQ instance.

eb-connect

QueueName

string

No

The name of the queue.

queue_api_1642474203601

BodyDataType

string

No

The encoding format of the message. Valid values:

  • JSON

  • Text

  • Binary

JSON

Username

string

No

The username of the consumer group.

admin

Password

string

No

The password of the consumer group.

admin

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchIds

string

No

The list of vSwitch IDs.

vsw-bp179l3llg3jjxwrq72****

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

NetworkType

string

No

The network type.

PrivateNetwork

AuthType

string

No

The authentication type.

ACL

SourceEventBusParameters

object

No

The event bus source parameters.

EventBusName

string

No

The event bus name.

"EventBusName"

EventRuleName

string

No

The event rule name.

"EventRuleName"

SourceMySQLParameters SourceMySQLParameters

No

The MySQL data source parameters.

SourcePostgreSQLParameters SourcePostgreSQLParameters

No

The PostgreSQL data source parameters.

SourceRabbitMQMetaParameters SourceRabbitMQMetaParameters

No

The ApsaraMQ for RabbitMQ metadata source parameters.

SourceRabbitMQMsgSyncParameters SourceRabbitMQMsgSyncParameters

No

The ApsaraMQ for RabbitMQ message synchronization source parameters.

SourceFeiShuDocsParameters SourceFeiShuDocsParameters

No

The Lark document source parameters.

SourceJDBCParameters SourceJDBCParameters

No

The JDBC data source parameters.

Metadata

string

No

The common JSON Configurations for event providers. This parameter is mutually exclusive with Source.

{"key":"value"}

Sink

object

No

The event target. You must select one and only one sink.

SinkMNSParameters

object

No

The MNS event target.

QueueName

object

No

The target service type is Message Service (MNS).

Value

string

No

The name of the Message Service (MNS) queue.

MyQueue

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Body

object

No

The message content.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

Valid values:

  • JSONPATH :

    JSONPATH

  • CONSTANT :

    CONSTANT

  • TEMPLATE :

    TEMPLATE

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

IsBase64Encode

object

No

Specifies whether to enable Base64 encoding.

Value

string

No

Specifies whether Base64 encoding is enabled.

true

Form

string

No

The event transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

SinkEventHouseParameters

object

No

The event target name.

CatalogName

string

No

The catalog name.

demo

NamespaceName

string

No

The namespace of the target table.

name1

EventTableName

string

No

The name of the target table.

demo-table

MappingRules

array<object>

No

The field mapping rules.

array<object>

No

The field mapping rules.

ColumnValue

object

No

The extraction rule for the column value.

Value

string

No

The extraction path, such as $.data.value.name.

$.data.value

Form

string

No

The transformation method, such as JSONPATH.

JSONPATH

Template

string

No

The template configuration.

The value of ${key} is ${value}!

ColumnName

string

No

The column name.

age

ColumnType

string

No

The column type.

Valid values:

  • text
  • bigint
  • json
  • timestamp
  • double

text

SinkRabbitMQParameters

object

No

The parameters for the RabbitMQ sink.

InstanceId

object

No

The destination service type is Message Queue (MSMQ) for RabbitMQ.

Value

string

No

The instance ID of the Message Queue (MSMQ) for RabbitMQ instance.

a5ff91ad4f3f24947887fe184fc2****

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

VirtualHostName

object

No

The name of the vhost in the Message Queue (MSMQ) for RabbitMQ instance.

Value

string

No

The name of the vhost in the Message Queue (MSMQ) for RabbitMQ instance.

rabbit-host

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

TargetType

object

No

The destination type.

Value

string

No

The destination type. Valid values:

  • Exchange: Exchange mode.

  • Queue: Queue mode.

Exchange/Queue

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Exchange

object

No

The exchange mode. This parameter is required only when the TargetType parameter is set to Exchange.

Value

string

No

The name of the exchange in the Message Queue (MSMQ) for RabbitMQ instance.

a_exchange

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

RoutingKey

object

No

The routing rule of the message. This parameter is required only when the TargetType parameter is set to Exchange.

Value

string

No

The routing rule of the message.

housekeeping

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

QueueName

object

No

The queue mode. This parameter is required only when the TargetType parameter is set to Queue.

Value

string

No

The name of the queue in the instance.

MyQueue

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Body

object

No

The message content.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

MessageId

object

No

The message ID.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

Properties

object

No

The filter properties.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

VpcId

object

No

The ID of the VPC.

Value

string

No

The ID of the VPC.

i-2ze7u5i17mbqtx1p****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

VSwitchIds

object

No

The list of vSwitch IDs.

Value

string

No

The list of vSwitch IDs.

vbr-8vb835n3zf9shwl****mp

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SecurityGroupId

object

No

The ID of the security group.

Value

string

No

The ID of the security group.

sg-mw43*****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

NetworkType

object

No

The network type.

Value

string

No

The network type.

PrivateNetwork

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkKafkaParameters

object

No

The Sink Kafka parameters.

InstanceId

object

No

The ID of the Message Queue for Apache Kafka instance.

Value

string

No

The instance ID.

Defaut_1283278472_s****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Topic

object

No

The topic name.

Value

string

No

The name of the topic.

test

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

DynamicTopic

object

No

Specifies the target topic routing policy for messages. If both the Topic and DynamicTopic parameters are specified, the value of the DynamicTopic parameter takes precedence. The following two configuration modes are supported: 1. Static constant mode: Enter a fixed topic name string (for example, "order_created"). All messages are sent to this topic. 2. Dynamic extraction mode: Enter a standard JSONPath expression (for example, "$.user.id" or "$.metadata.category"). The system parses the upstream message body and extracts the value of the matched field as the target topic name.

Value

string

No

The value.

"DynamicTopic"

Form

string

No

The transformation type. Valid values:

  • CONSTANT: fixed value

  • JSONPATH: value extracted from the upstream message based on the path

CONSTANT

Template

string

No

The template.

Template string (if any)

Acks

object

No

The Kafka write acknowledgment mode. Valid values:

  • acks=0: No response from the server is required. This mode provides high performance but has a high risk of data loss.

  • acks=1: A response is returned after the primary node successfully writes the data. This mode provides medium performance and has a medium risk of data loss. Data may be lost if the primary node goes down.

  • acks=all: A response is returned after the primary node successfully writes the data and the secondary nodes successfully synchronize the data. This mode provides low performance but high data security. Data is lost only if both the primary and secondary nodes go down.

Value

string

No

The Kafka write acknowledgment mode. Valid values:

  • acks=0: No response from the server is required. This mode provides high performance but has a high risk of data loss.

  • acks=1: A response is returned after the primary node successfully writes the data. This mode provides medium performance and has a medium risk of data loss. Data may be lost if the primary node goes down.

  • acks=all: A response is returned after the primary node successfully writes the data and the secondary nodes successfully synchronize the data. This mode provides low performance but high data security. Data is lost only if both the primary and secondary nodes go down.

1

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Key

object

No

The message key.

Value

string

No

The message key.

key

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Value

object

No

The message body.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

Headers

object

No

The message headers.

Value

string

No

The message headers.

"Headers"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

CompressionType

string

No

The compression type.

"CompressionType"

SinkApacheKafkaParameters

object

No

The description.

Bootstraps

string

No

The initial connection endpoints of the Kafka cluster.

"Bootstraps"

DynamicTopic

object

No

Specifies the target topic routing policy for messages. If both the Topic and DynamicTopic parameters are specified, the value of the DynamicTopic parameter takes precedence. The following two configuration modes are supported: 1. Static constant mode: Enter a fixed topic name string (for example, "order_created"). All messages are sent to this topic. 2. Dynamic extraction mode: Enter a standard JSONPath expression (for example, "$.user.id" or "$.metadata.category"). The system parses the upstream message body and extracts the value of the matched field as the target topic name.

Value

string

No

The value.

"DynamicTopic"

Form

string

No

The transformation type. Valid values:

  • CONSTANT: fixed value

  • JSONPATH: value extracted from the upstream message based on the path

CONSTANT

Template

string

No

The template.

Template string (if any)

Topic

string

No

The topic name.

LTC_CACHE_PRD

Acks

string

No

The Kafka write acknowledgment mode. Valid values:

  • acks=0: No response from the server is required. This mode provides high performance but has a high risk of data loss.

  • acks=1: A response is returned after the primary node successfully writes the data. This mode provides medium performance and has a medium risk of data loss. Data may be lost if the primary node goes down.

  • acks=all: A response is returned after the primary node successfully writes the data and the secondary nodes successfully synchronize the data. This mode provides low performance but high data security. Data is lost only if both the primary and secondary nodes go down.

all

Key

object

No

The message key.

Value

string

No

The message key.

key

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Value

object

No

The message body.

Value

string

No

The message body.

$.data.content

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Headers

object

No

The message headers.

Value

string

No

The message headers.

"Headers"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SecurityProtocol

string

No

The Kafka security protocol type. Valid values:

  • SASL_SSL

  • PLAINTEXT

  • SASL_PLAINTEXT

SASL_SSL

SaslMechanism

string

No

The Kafka SASL authentication mechanism.

"SaslMechanism"

SaslUser

string

No

The username for Kafka SASL authentication.

"SaslUser"

SslKeystoreCertificateChain

string

No

[Required for mutual authentication] Kafka client certificate chain. This parameter is required when mutual SSL authentication (ssl.client.auth=required) is enabled on the Kafka server. Format requirements: Base64-encoded PEM format, containing the client certificate and the complete certificate chain (client certificate first, intermediate CA certificates next, and root CA certificate optional). Note: Ensure that each PEM file content starts with '-----BEGIN CERTIFICATE-----' and ends with '-----END CERTIFICATE-----' before concatenating and Base64 encoding.

"SslKeystoreCertificateChain"

SslKeyPassword

string

No

[Required for encrypted private keys] Kafka client private key password. This password is required when the client private key is encrypted (that is, the PEM file contains the 'Proc-Type: 4,ENCRYPTED' or 'ENCRYPTED' tag). Leave it empty if the private key is not encrypted. Note: This password is used only to decrypt the private key and is unrelated to Kafka authentication.

yourPassword

SslTruststoreCertificates

string

No

[Required for SSL scenarios] Kafka server trust certificate. Used to authenticate the validity of the Kafka broker SSL certificate and prevent man-in-the-middle attacks. Format requirements: Base64-encoded PEM format, which typically contains the CA certificate or the server certificate of the Kafka server. Example: Perform Base64 encoding on the content of the CA certificate PEM file, ensuring that it starts with '-----BEGIN CERTIFICATE-----' and ends with '-----END CERTIFICATE-----'. If Kafka uses a self-signed certificate, you must provide the CA certificate that issued the certificate.

"SslTruststoreCertificates"

SslKeystoreKey

object

No

[Required for mutual authentication] SSL private key configuration object. When mutual SSL authentication is enabled on the Kafka server, you must provide the client private key. The key only supports the KMS mode: specify the KMS resource that stores the private key by using KmsArn. The system retrieves the private key content from KMS only in memory, which provides higher security. Configuration example: {"KmsArn": "acs:kms:cn-hangzhou:123456789:secret/ssl-key-xxxx", "KmsSecretValueKey": "keystore_private_key"}.

KmsArn

string

No

[Required] ARN of the KMS resource that stores the SSL private key. Used to locate the KMS instance that stores the client private key. Format example: 'acs:kms:cn-hangzhou:123456789:secret/ssl-keystore-key-xxxx'. How to obtain: View the ARN information of the corresponding key in the KMS console.

"KmsArn"

KmsSecretValueKey

string

No

[KMS KV mode] Key name in the KMS secret. When the secret stored in KMS is a key-value (KV) pair, specify this parameter to indicate the key corresponding to the SSL private key. Example: If the KMS secret is '{"ssl_keystore_key":"-----BEGIN PRIVATE KEY-----...","ssl_truststore_key":"..."}', enter 'ssl_keystore_key'. If the KMS secret is in plaintext mode (directly storing the PEM content of the private key), leave this parameter empty.

"KmsSecretValueKey"

CompressionType

string

No

The compression type.

"CompressionType"

VpcId

object

No

The ID of the VPC.

Value

string

No

The ID of the VPC.

i-2ze7u5i17mbqtx1p****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

VSwitchIds

object

No

The list of vSwitch IDs.

Value

string

No

The list of vSwitch IDs.

vbr-8vb835n3zf9shwl****mp

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SecurityGroupId

object

No

The ID of the security group.

Value

string

No

The ID of the security group.

sg-mw43*****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

NetworkType

object

No

The network type.

Value

string

No

The network type.

PrivateNetwork

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SaslPassword

string

No

The password for Kafka SASL authentication.

yourPassword

SinkFcParameters

object

No

The function target.

ServiceName

object

No

The service name.

Value

string

No

The service name.

myService

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

FunctionName

object

No

The function name.

Value

string

No

The function name.

myFunction

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Concurrency

object

No

The delivery concurrency. Minimum value: 1.

Value

string

No

The delivery concurrency. Minimum value: 1.

1

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Qualifier

object

No

The service version.

Value

string

No

The service version.

LATEST

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

InvocationType

object

No

The invocation type. Valid values:

  • Sync: Synchronous.

  • Async: Asynchronous.

Value

string

No

The invocation type. Valid values:

  • Sync: Synchronous.

  • Async: Asynchronous.

Valid values:

  • Async :

    Async

  • Sync :

    Sync

Async

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Body

object

No

The request body sent to the function.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format. Valid values:

  • ORIGINAL: Complete event.

  • JSONPATH: Partial event.

  • CONSTANT: Constant.

  • TEMPLATE: Template.

For more information, see https://www.alibabacloud.com/help/en/eventbridge/user-guide/event-transformation.

Valid values:

  • JSONPATH :

    JSONPATH

  • CONSTANT :

    CONSTANT

  • ORIGINAL :

    ORIGINAL

  • TEMPLATE :

    TEMPLATE

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

DataFormat

object

No

The data format.

Value

string

No

The data format.

"DataFormat"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkRocketMQParameters

object

No

The sink parameters for ApsaraMQ for RocketMQ.

InstanceId

object

No

The target service type is ApsaraMQ for RocketMQ.

Value

string

No

The instance ID of the ApsaraMQ for RocketMQ instance.

MQ_INST_164901546557****_BAAN****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Topic

object

No

The topic of the ApsaraMQ for RocketMQ instance.

Value

string

No

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

Mytopic

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

The value of ${key} is ${value}!

Body

object

No

The message content.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

Properties

object

No

The filter properties.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

Keys

object

No

The filter properties.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

Tags

object

No

The filter properties.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

InstanceType

object

No

The instance type.

Value

string

No

The instance type. Valid values:

  • Cloud_4: ApsaraMQ for RocketMQ 4.0 instance (default)

  • Cloud_5: ApsaraMQ for RocketMQ 5.0 instance

  • SelfBuilt: Self-managed Apache RocketMQ cluster

Cloud_4

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

InstanceEndpoint

object

No

The endpoint of the instance.

Value

string

No

The endpoint of the instance.

vbr-8vbsvkkbpf3vb0zef****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

InstanceUsername

object

No

The username of the instance.

Value

string

No

The username of the instance.

admin

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

InstancePassword

object

No

The password of the instance.

Value

string

No

The password of the instance.

admin

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

VpcId

object

No

The ID of the VPC.

Value

string

No

The ID of the VPC.

vbr-8vb835n3zf9shwlvb****

Form

string

No

The event transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

VSwitchIds

object

No

The vSwitch ID.

Value

string

No

The vSwitch ID.

vbr-8vb835n3zf9shwl****mp

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SecurityGroupId

object

No

The ID of the security group.

Value

string

No

The ID of the security group.

b4bf375515f6440f942e3a20c33d****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Network

object

No

The network type. Valid values:

  • PublicNetwork

  • PrivateNetwork

Value

string

No

The network type. Valid values:

  • PublicNetwork

  • PrivateNetwork

PublicNetwork

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

DeliveryOrderType

object

No

The delivery order type.

Value

string

No

The delivery order type.

"DeliveryOrderType"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

ShardingKey

object

No

The sharding key.

Value

string

No

The sharding key.

"ShardingKey"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkDorisParameters

object

No

The event source type.

QueryEndpoint

object

No

The MySQL protocol endpoint.

Value

string

No

The MySQL protocol endpoint.

"QueryEndpoint"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

FeHttpEndpoint

object

No

The FE HTTP protocol endpoint.

Value

string

No

The FE HTTP protocol endpoint.

"FeHttpEndpoint"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

BeHttpEndpoint

object

No

The BE public HTTP protocol endpoint.

Value

string

No

The BE public HTTP protocol endpoint.

"BeHttpEndpoint"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

UserName

object

No

The username.

Value

string

No

The username.

"UserName"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Password

object

No

The password.

Value

string

No

The password.

yourPassword

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Database

object

No

The database.

Value

string

No

The database.

"Database"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Table

object

No

The destination table.

Value

string

No

The destination table.

"Table"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Body

object

No

The message content.

Value

string

No

The message content.

{ "key": "value" }

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

NetworkType

object

No

The network.

Value

string

No

The network.

PublicNetwork

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

VpcId

object

No

The ID of the VPC.

Value

string

No

The ID of the VPC.

i-2ze7u5i17mbqtx1p****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

VSwitchIds

object

No

The vSwitches.

Value

string

No

The vSwitches.

vbr-8vb835n3zf9shwl****mp

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SecurityGroupId

object

No

The security group.

Value

string

No

The security group.

sg-mw43*****

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkRocketMQCheckpointParameters

object

No

The event source type.

InstanceType

string

No

The instance type.

Cloud_4

InstanceId

string

No

The instance ID.

r-8vb64581862c****

Topic

object

No

The topic name.

Value

string

No

The topic name.

demo-topic

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

ConsumeTimestamp

object

No

The timestamp of the consumption position.

Value

string

No

The timestamp.

1670656652009

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Group

object

No

The consumer group.

Value

string

No

The consumer group.

"Group"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkApacheRocketMQCheckpointParameters

object

No

The event source type.

Topic

object

No

The topic name.

Value

string

No

The topic name.

demo-topic

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

ConsumeTimestamp

object

No

The timestamp of the consumption position.

Value

string

No

The timestamp.

1670656652009

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Group

object

No

The consumer group.

Value

string

No

The consumer group.

"Group"

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

InstanceEndpoint

string

No

The endpoint of the instance.

reg****-vpc.cn-zhangjiakou.aliyuncs.com

InstanceUsername

string

No

The username of the instance.

admin

InstancePassword

string

No

The password of the instance.

admin

NetworkType

string

No

The network type.

PrivateNetwork

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchId

string

No

The vSwitch IDs.

"VSwitchId"

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

SinkSLSParameters

object

No

The parameters of the Simple Log Service (SLS) sink.

Project

object

No

The SLS project.

Value

string

No

The SLS project.

test-project

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

LogStore

object

No

The SLS Logstore.

Value

string

No

The SLS Logstore.

test-logstore

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Topic

object

No

The topic of the log, which corresponds to the reserved SLS field "topic".

Value

string

No

The topic of the log, which corresponds to the reserved SLS field "topic".

testTopic

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Body

object

No

The content sent to SLS.

Value

string

No

The value before transformation.

{ "key": "value" }

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

The value of ${key} is ${value}!

RoleName

object

No

To grant authorization to the event bus EventBridge to use this role to read SLS log content, you must meet the following conditions: when you create the role for the service in the Resource Access Management (RAM) console, you must select Alibaba Cloud Service and select the event bus as the trusted service.

Value

string

No

To grant authorization to the event bus EventBridge to use this role to read SLS log content, you must meet the following conditions: when you create the role for the service in the Resource Access Management (RAM) console, you must select Alibaba Cloud Service and select the event bus as the trusted service.

testRole

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

ContentType

object

No

The data format of SLS. Valid values:

  • JSON

  • KeyValue

Value

string

No

The value before transformation.

JSON

Form

string

No

The transformation format.

CONSTANT

Template

string

No

The template style.

Template string (if any)

ContentSchema

object

No

The custom key-value pairs of the log. This parameter takes effect only when ContentType is set to KeyValue. Each key-value pair is represented by Key_n and Value_n.

Value

string

No

The value before transformation.

{"Key_1":{"form":"CONSTANT","value":"demoKey"},"Value_1":{"form":"JSONPATH","value":"$.data.value"}}

Form

string

No

The template style.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkDataHubParameters

object

No

The DataHub sink parameters.

Project

object

No

The DataHub project name.

Value

string

No

The DataHub project name.

demo-project

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Topic

object

No

The DataHub topic name.

Value

string

No

The DataHub topic name.

demo-topic

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

TopicType

object

No

The topic type. Valid values:

  • TUPLE

  • BLOB

Value

string

No

The topic type. Valid values:

  • TUPLE

  • BLOB

TUPLE

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

TopicSchema

object

No

The topic content schema for the TUPLE type.

Value

string

No

The topic content schema for the TUPLE type.

{"k1":"value1","k2":"value2"}

Form

string

No

The transformation format.

TEMPLATE

Template

string

No

The template style.

{"k1":"${k1}","k2":"${k2}"}

Body

object

No

The record content template for the BLOB type.

Value

string

No

The record content template for the BLOB type.

{ "key": "value" }

Form

string

No

The transformation format.

ORIGINAL

Template

string

No

The template style.

Template string (if any)

RoleName

object

No

The task role name.

Value

string

No

The name of the task role.

test-role

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkFnfParameters

object

No

The FnF sink parameters.

FlowName

object

No

The name of the flow.

Value

string

No

The name of the flow.

test-streaming-fnf

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

ExecutionName

object

No

The name of the execution.

Value

string

No

The name of the execution.

123

Form

string

No

The transformation format. Default value: CONSTANT. Valid values:

  • JSONPATH: partial event

  • CONSTANT: constant

  • TEMPLATE: template

For more information, see https://www.alibabacloud.com/help/en/eventbridge/user-guide/event-transformation.

Valid values:

  • JSONPATH :

    JSONPATH

  • CONSTANT :

    CONSTANT

  • TEMPLATE :

    TEMPLATE

CONSTANT

Template

string

No

The template style.

Template string (if any)

Input

object

No

The execution input information.

Value

string

No

The execution input information.

123

Form

string

No

The transformation format. Valid values:

  • ORIGINAL: Complete event.

  • JSONPATH: Partial event.

  • CONSTANT: Constant.

  • TEMPLATE: Template.

For more information, see https://www.alibabacloud.com/help/en/eventbridge/user-guide/event-transformation.

Valid values:

  • JSONPATH :

    JSONPATH

  • CONSTANT :

    CONSTANT

  • ORIGINAL :

    ORIGINAL

  • TEMPLATE :

    TEMPLATE

CONSTANT

Template

string

No

The template style.

Template string (if any)

RoleName

object

No

The role configuration.

Value

string

No

The role configuration.

Al****FNF-x****

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkPrometheusParameters

object

No

The Prometheus sink parameters.

URL

object

No

The Prometheus Remote Write URL.

Value

string

No

The Prometheus Remote Write URL.

https://cn-hangzhou.arms.aliyuncs.com/prometheus/167275****/c5b7faeb2e8994641*****d5c559f/cn-hangzhou/api/v3/write

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style. Leave this parameter empty when Form is set to CONSTANT.

Template string (if any)

HeaderParameters

object

No

The data structure of the request header parameters.

Value

string

No

  • If Form is CONSTANT: the constant value.

  • If Form is JSONPATH: the content extracted by using JSONPath.

  • If Form is TEMPLATE: the template variable.

Note: The Value field cannot exceed 10,240 characters.

name

Form

string

No

The transformation format.

Valid values:

  • JSONPATH :

    JSONPATH

  • CONSTANT :

    CONSTANT

  • TEMPLATE :

    TEMPLATE

TEMPLATE

Template

string

No

The HTTP request header template style. Specify this parameter when Form is set to TEMPLATE. The result after event content transformation must be in JSON format.

{ "user_name":"${name}" }

AuthorizationType

object

No

The authentication type.

Value

string

No

The authentication type.

Valid values:

  • BASIC_AUTH :

    BASIC_AUTH

BASIC_AUTH

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

Username

object

No

The username.

Value

string

No

The username.

****admin

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Template

string

No

The template style.

Template string (if any)

Password

object

No

The password.

Value

string

No

The password.

yourPassword

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

Data

object

No

The metric content.

Value

string

No

The metric content.

$.data

Form

string

No

The transformation format. Default value: JSONPATH.

JSAONPATH

Template

string

No

The template style.

Template string (if any)

NetworkType

object

No

The network type.

Value

string

No

The network type.

Valid values:

  • PrivateNetwork :

    PrivateNetwork

  • PublicNetwork :

    PublicNetwork

PrivateNetwork

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

VpcId

object

No

The ID of the VPC.

Value

string

No

The ID of the VPC.

i-2ze7u5i17mbqtx1p****

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

VSwitchId

object

No

The vSwitch ID.

Value

string

No

The vSwitch ID.

vsw-dwaafds****

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

SecurityGroupId

object

No

The ID of the security group.

Value

string

No

The ID of the security group.

sg-mw43*****

Form

string

No

The transformation format. Default value: CONSTANT.

Valid values:

  • CONSTANT :

    CONSTANT

CONSTANT

Template

string

No

The template style.

Template string (if any)

SinkCustomizedKafkaParameters

object

No

The Kafka sink parameters.

InstanceId

string

No

The ID of the ApsaraMQ for Kafka instance.

90be1f96-4229-4535-bb76-34b4f6fb2b71

SinkCustomizedKafkaConnectorParameters

object

No

The Kafka sink connector parameters.

ConnectorPackageUrl

string

No

The download URL of the OSS file.

"https://examplebucket.oss-cn-hangzhou.aliyuncs.com/testDoc/Old_Homebrew/2024-06-26%2022%3A34%3A08/opt/homebrew/homebrew/Library/Homebrew/test/support/fixtures/cask/AppWithBinary.zip?OSSAccessKeyId=ri&Expires=1725539627&Signature=rb8q3OpV2i3gZJ"

ConnectorParameters

object

No

The properties file parsed from the current ZIP package.

Name

string

No

The connector name.

mongo-sink

Config

object

No

The connector configurations.

{ "connector.class": "com.mongodb.kafka.connect.MongoSinkConnector", "tasks.max": "1", "topics": "sourceA,sourceB" }

WorkerParameters

object

No

The instance configuration.

{ "group.id": "connect-eb-cluster-KAFKA_CONNECTORC", "offset.storage.topic": "connect-eb-offset-KAFKA_CONNECTOR_yjqC8K5ewC", "config.storage.topic": "connect-eb-config-KAFKA_CONNECTOR_yjqC8K5ewC", "status.storage.topic": "connect-eb-status-KAFKA_CONNECTOR_yjqC8K5ewC", "consumer.group.id": "connector-eb-cluster-KAFKA_CONNECTOR_yjqC8K5ewC-mongo-sink", "bootstrap.servers": "alikafka-post:9092" }

SinkDashVectorParameters

object

No

The DashVector sink parameters.

InstanceId

string

No

The instance ID.

vrs-cn-lbj3ru1***

Collection

string

No

The name of the collection.

collection1

ApiKey

string

No

The API key created in the DashVector console.

Q34nExQH7sQ****

Operation

string

No

The operation type for the DashVector database.

Valid values:

  • Delete :

    Delete

  • Upsert :

    Upsert

Upsert

Network

string

No

The network type.

Valid values:

  • PrivateNetwork :

    PrivateNetwork

  • PublicNetwork :

    PublicNetwork

PublicNetwork

PrimaryKeyId

object

No

The primary key ID used when inserting or deleting records.

Note

If you do not specify this field, a random primary key ID is used.

Form

string

No

The transformation format.

Valid values:

  • JSONPATH :

    JSONPATH

  • TEMPLATE :

    TEMPLATE

JSONPATH

Value

string

No

  • If Form is JSONPATH: the content extracted by using JSONPath.

  • If Form is TEMPLATE: the template variable.

Note

The Value field cannot exceed 10,240 characters.

$.data.requestId

Template

string

No

The primary key ID template. This field is required only when Form is set to TEMPLATE.

${ID}

Partition

object

No

The partition. Default value: default.

Form

string

No

The transformation format.

Valid values:

  • JSONPATH :

    JSONPATH

  • CONSTANT :

    CONSTANT

CONSTANT

Value

string

No

  • If Form is CONSTANT: the constant value.

  • If Form is JSONPATH: the content extracted by using JSONPath.

Note

The Value field cannot exceed 10,240 characters.

default

Template

string

No

The template style.

${partition}

Vector

object

No

The vector inserted into the DashVector record.

Form

string

No

The transformation format.

Valid values:

  • JSONPATH :

    JSONPATH

JSONPATH

Value

string

No

The content extracted by using JSONPath.

Note

The Value field cannot exceed 10,240 characters.

$.data.messageBody

Template

string

No

The template style.

${vector}

DashVectorSchemaParameters

array<object>

No

The schema field definition for the record when inserting data into DashVector. The result after event content transformation must be in JSON format.

array<object>

No

The attribute column.

Name

object

No

The attribute name.

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Value

string

No

The attribute name.

content

Template

string

No

The template style.

Template string (if any)

Type

object

No

The DashVector attribute type.

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Value

string

No

The DashVector attribute type.

STRING

Template

string

No

The template style.

Template string (if any)

Value

object

No

The attribute value.

Form

string

No

The transformation format. Default value: CONSTANT.

JSONPATH

Value

string

No

The attribute value.

$.data.content

Template

string

No

The template style.

${content}

SinkOpenSourceRabbitMQParameters

object

No

The parameters for the self-managed RabbitMQ destination.

Endpoint

string

No

The endpoint.

"Endpoint"

VirtualHostName

string

No

The name of the vhost for the Message Queue for RabbitMQ instance.

eb-connect

TargetType

string

No

The destination type.

Exchange

Exchange

string

No

The exchange mode. This parameter is required only when the TargetType parameter is set to Exchange.

"Exchange"

QueueName

string

No

The name of the queue.

queue_api_1642474203601

Username

string

No

The username of the consumer group.

admin

Password

string

No

The password of the consumer group.

admin

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchIds

string

No

The list of vSwitch IDs.

vsw-bp179l3llg3jjxwrq72****

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

NetworkType

string

No

The network type.

PrivateNetwork

AuthType

string

No

The authentication type.

ACL

RoutingKey

object

No

The routing rule of the message. This parameter is required only when the TargetType parameter is set to Exchange.

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Value

string

No

The routing rule of the message. This parameter is required only when the TargetType parameter is set to Exchange.

housekeeping

Template

string

No

The template style.

Template string (if any)

Body

object

No

The message content.

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Value

string

No

The message content.

{ "key": "value" }

Template

string

No

The template style.

Template string (if any)

MessageId

object

No

The message ID.

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Value

string

No

The message ID.

{ "key": "value" }

Template

string

No

The template style.

Template string (if any)

Properties

object

No

The filter properties.

Form

string

No

The transformation format. Default value: CONSTANT.

CONSTANT

Value

string

No

The filter properties.

{ "key": "value" }

Template

string

No

The template style.

Template string (if any)

SinkBaiLianParameters SinkBaiLianParameters

No

The delivery parameters for Model Studio.

SinkDataWorksTriggerParameters SinkDataWorksTriggerParameters

No

The delivery parameters for the DataWorks trigger.

SinkHttpsParameters SinkHttpsParameters

No

The delivery parameters for HTTPS.

SinkApiDestinationParameters SinkApiDestinationParameters

No

The delivery parameters for the API destination.

SinkOSSParameters SinkOSSParameters

No

The delivery parameters for Object Storage Service (OSS).

SinkRabbitMQMetaParameters SinkRabbitMQMetaParameters

No

The metadata delivery parameters for Message Queue for RabbitMQ.

SinkRabbitMQMsgSyncParameters SinkRabbitMQMsgSyncParameters

No

The message synchronization delivery parameters for Message Queue for RabbitMQ.

SinkMQTTParameters SinkMQTTParameters

No

The delivery parameters for MQTT.

SinkAgentRunParameters SinkAgentRunParameters

No

The delivery parameters for the agent runtime.

SinkKnowledgeBaseParameters SinkKnowledgeBaseParameters

No

The delivery parameters for the knowledge base.

SinkAgentCoreKnowledgeBaseParameters SinkAgentCoreKnowledgeBaseParameters

No

The configuration for the AgentCore knowledge base destination. WorkspaceId, KnowledgeBaseId, and RoleName are required. RoleName is the name of the RAM role used to obtain temporary credentials for the user role.

RunOptions

object

No

The runtime environment parameters.

MaximumTasks

integer

No

The maximum number of concurrent tasks.

2

ErrorsTolerance

string

No

The error tolerance policy. Valid values:

  • NONE: Does not tolerate errors.

  • ALL: Tolerates all errors.

ALL

RetryStrategy

object

No

The retry strategy used when event delivery fails.

PushRetryStrategy

string

No

The retry strategy. Valid values:

  • BACKOFF_RETRY: Backoff retry.

  • EXPONENTIAL_DECAY_RETRY: Exponential decay retry.

BACKOFF_RETRY

MaximumEventAgeInSeconds

integer

No

The maximum retry time.

512

MaximumRetryAttempts

integer

No

The maximum number of retry attempts.

2

DeadLetterQueue

object

No

Specifies whether to enable the dead-letter queue. By default, the dead-letter queue is disabled, and messages that exceed the retry strategy are discarded.

Arn

string

No

The ARN of the dead-letter queue.

acs:ram::131733464781****:role/rdstoecsassumekms

Network

string

No

The network configuration. Default value: Default. For VPC networks, the value is PublicNetwork.

Default

VpcId

string

No

The ID of the VPC.

vpc-8vblalsi0vbhizr77****

VSwitchIds

string

No

The list of vSwitch IDs.

vsw-bp179l3llg3jjxwrq72****

SecurityGroupId

string

No

The ID of the security group.

sg-bp1iv19sp1msc7zot4****

BatchWindow

object

No

The batching window.

CountBasedWindow

integer

No

The maximum number of events that the window can hold. When this threshold is reached, the data in the window is pushed downstream. If multiple windows exist, the push is triggered when any of the windows reaches the threshold.

100

TimeBasedWindow

integer

No

The maximum time window in seconds for batching events. When this threshold is reached, the data in the window is pushed downstream. If multiple windows exist, the push is triggered when any of the windows reaches the threshold.

10

BusinessOption

object

No

The business options.

BusinessMode

string

No

The business mode.

"BusinessMode"

MinCapacityUnitCount

integer

No

The minimum number of capacity units.

1

MaxCapacityUnitCount

integer

No

The maximum number of capacity units.

10

Throttling

integer

No

The throttling limit.

100

Transforms

array<object>

No

The transform configurations.

object

No

The ARN of the cloud service, such as the ARN of a function in Function Compute.

Arn

string

No

The ARN of the cloud service, such as the ARN of a function in Function Compute.

acs:fc:cn-hangzhou:*****:services/demo-service.LATEST/functions/demo-func

DashScopeTransformParameters DashScopeTransformParameters

No

The DashScope model transform parameters.

BaiLianAgentTransformParameters BaiLianAgentTransformParameters

No

The Model Studio agent transform parameters.

EmbeddingTransformParameters EmbeddingTransformParameters

No

The embedding transform parameters.

AiClassifyTransformParameters AiClassifyTransformParameters

No

The AI text classification parameters.

AiExtractTransformParameters AiExtractTransformParameters

No

The AI information extraction parameters.

AiSummarizeTransformParameters AiSummarizeTransformParameters

No

The AI summarization parameters.

AiTranslateTransformParameters AiTranslateTransformParameters

No

The AI translation parameters.

AiFilterTransformParameters AiFilterTransformParameters

No

The AI conditional filtering parameters.

AiRedactTransformParameters AiRedactTransformParameters

No

The AI data masking parameters.

AiSentimentAnalysisTransformParameters AiSentimentAnalysisTransformParameters

No

The AI emotion analysis parameters.

AiPrepSearchTransformParameters AiPrepSearchTransformParameters

No

The AI semantic chunking parameters.

AiEmbedTransformParameters AiEmbedTransformParameters

No

The AI embedding parameters.

AiChunkTransformParameters AiChunkTransformParameters

No

The AI local text chunking parameters.

Tags

array<object>

No

The list of tags. Up to 20 tags are supported.

object

No

Key

string

No

The tag key.

env

Value

string

No

The tag value.

prod

Response elements

Element

Type

Description

Example

object

The request parameters.

Message

string

The error message.

The name [xxxx] of event streaming in request is already exist!

RequestId

string

The request ID.

B896B484-F16D-59DE-9E23-DD0E5C36****

Data

object

The returned data.

EventStreamingARN

string

The Alibaba Cloud Resource Name (ARN) of the event stream.

acs:eventbridge:cn-hangzhou:164901546557****:eventstreaming/myeventstreaming

Code

string

The response code. Valid values:

  • Success: The request is successful.

  • Other values: An error code. For more information, see Error codes.

Success

Success

boolean

Indicates whether the operation is successful.

true

Examples

Success response

JSON format

{
  "Message": "The name [xxxx] of event streaming in request is already exist!",
  "RequestId": "B896B484-F16D-59DE-9E23-DD0E5C36****",
  "Data": {
    "EventStreamingARN": "acs:eventbridge:cn-hangzhou:164901546557****:eventstreaming/myeventstreaming"
  },
  "Code": "Success",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

403 ServiceNotEnable Service not enable

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.