All Products
Search
Document Center

EventBridge:UpdateEventStreaming

Last Updated:Mar 15, 2024

Modifies the information about an event stream, such as the basic information and the information about the event source, event filtering rule, and event target.

Operation description

You can call this API operation to modify the information about an event stream, such as the basic information and the information about the event source, event filtering rule, and event target.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
EventStreamingNamestringYes

The name of the event stream.

myeventstreaming
DescriptionstringNo

The description of the event stream.

rocketmq2mns
FilterPatternstringYes

The rule that is used to filter events. If you leave this parameter empty, all events are matched.

SourceobjectYes

The event source, which is also known as the event source. You must and can specify only one event source.

SourceMNSParametersobjectNo

The parameters that are configured if you specify Message Service (MNS) as the event source.

RegionIdstringNo

The ID of the region where the MNS queue resides.

cn-hangzhou
QueueNamestringNo

The name of the MNS queue.

queue_api_1642474203601
IsBase64DecodebooleanNo

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

true
SourceRabbitMQParametersobjectNo

The parameters that are configured if you specify Message Queue for RabbitMQ as the event source.

RegionIdstringNo

The ID of the region where the Message Queue for RabbitMQ instance resides.

cn-hangzhou
InstanceIdstringNo

The ID of the Message Queue for RabbitMQ instance.

i-f8z9lqkldlb4oxsxwwub
VirtualHostNamestringNo

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

eb-connect
QueueNamestringNo

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

demo
SourceKafkaParametersobjectNo

The parameters that are configured if you specify Message Queue for Apache Kafka as the event source.

RegionIdstringNo

The ID of the region where the Message Queue for Apache Kafka instance resides.

cn-zhangjiakou
InstanceIdstringNo

The ID of the Message Queue for Apache Kafka instance.

i-8vbh4a5b9yfhgkkzm98f
TopicstringNo

The topic name.

topic_empower_1641539400786
ConsumerGroupstringNo

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

DEFAULT_GROUP
OffsetResetstringNo

The offset.

latest
NetworkstringNo

The network setting. Default value: Default. The value PublicNetwork specifies a virtual private cloud (VPC).

Default
VpcIdstringNo

The VPC ID.

vpc-2ze6p0o345nykmekxtuop
VSwitchIdsstringNo

The vSwitch ID.

vsw-wz9t1l1e8eu2omwjazmtm
SecurityGroupIdstringNo

The security group ID.

sg-uf6jcm3y5hcs7hklytxh
SourceRocketMQParametersobjectNo

The parameters that are configured if you specify Message Queue for Apache RocketMQ as the event source.

RegionIdstringNo

The ID of the region where the Message Queue for Apache RocketMQ instance resides.

cn-shanghai
InstanceIdstringNo

The ID of the Message Queue for Apache RocketMQ instance.

i-f8z9a9mcgwri1c1idd0e
TopicstringNo

The topic name.

TOPIC-cainiao-pcs-order-process-inBoundConditionCheck
TagstringNo

The tag that you want to use to filter messages.

test
OffsetstringNo

The offset from which messages are consumed. Valid values:

  • CONSUMEFROMLASTOFFSET: Messages are consumed from the latest offset.
  • CONSUMEFROMFIRSTOFFSET: Messages are consumed from the earliest offset.
  • CONSUMEFROMTIMESTAMP: Messages are consumed from the offset at the specified point in time.

Default value: CONSUMEFROMLASTOFFSET.

CONSUMEFROMLASTOFFSET
GroupIDstringNo

The ID of the consumer group on the Message Queue for Apache RocketMQ instance.

GID_test
TimestamplongNo

The timestamp that specifies the time from which messages are consumed. This parameter is valid only if you set Offset to CONSUMEFROMTIMESTAMP.

1670656652009
InstanceTypestringNo

The instance type.

2
InstanceEndpointstringNo

The instance endpoint.

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

The instance username.

admin
InstancePasswordstringNo

The instance password.

admin
AuthTypestringNo

The authentication method.

ACL
InstanceVpcIdstringNo

The VPC ID of the instance.

vpc-m5e3sv4b12345****
InstanceVSwitchIdsstringNo

The vSwitch ID of the instance.

vsw-m5ev8asdc6h12****
InstanceSecurityGroupIdstringNo

The security group ID of the instance.

sg-m5edtu24f12345****
InstanceNetworkstringNo

The network type of the instance. Valid values:

PublicNetwork and PrivateNetwork.

PublicNetwork
SourceMQTTParametersobjectNo

The parameters that are configured if you specify Message Queue for MQTT as the event source.

RegionIdstringNo

The ID of the region where the Message Queue for MQTT instance resides.

cn-shanghai
InstanceIdstringNo

The ID of the Message Queue for MQTT instance.

i-bp1dsudbecqwt61jqswt
TopicstringNo

The topic name.

topic_empower_1642400400779
SourceDTSParametersobjectNo

The parameters that are configured if you specify Data Transmission Service (DTS) as the event source.

TaskIdstringNo

The task ID.

f86e5814-b223-482c-b768-3b873297dade
BrokerUrlstringNo

The URL and port number of the change tracking instance.

TopicstringNo

The name of the tracked topic of the change tracking instance.

LTC_CACHE_PRD
SidstringNo

The consumer group ID.

hkprdb
UsernamestringNo

The consumer group username.

admin
PasswordstringNo

The consumer group password.

admin
InitCheckPointlongNo

The UNIX timestamp that is generated when the SDK client consumes the first data record.

1620962769
SourceSLSParametersobjectNo

The parameters that are configured if you specify Log Service as the event source.

RoleNamestringNo

The role name. If you want to authorize EventBridge to use this role to read logs in Log Service, you must select Alibaba Cloud Service for Selected Trusted Entity and EventBridge for Select Trusted Service when you create the role in the Resource Access Management (RAM) console.

testRole
SinkobjectYes

The event target. You must and can specify only one event target.

SinkMNSParametersobjectNo

The parameters that are configured if the event target is MNS.

QueueNameobjectNo

The information about the MNS queue.

ValuestringNo

The name of the queue in MNS.

MyQueue
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

BodyobjectNo

The message content.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

Specifies whether to enable Base64 encoding.

ValuestringNo

Specifies that Base64 encoding is enabled.

true
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

SinkFcParametersobjectNo

The parameters that are configured if the event target is Function Compute.

ServiceNameobjectNo

The information about the Function Compute service.

ValuestringNo

The name of the Function Compute service.

myService
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

FunctionNameobjectNo

The information about the Function Compute function.

ValuestringNo

The name of the Function Compute function.

mFunction
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

ConcurrencyobjectNo

The information about the delivery concurrency.

ValuestringNo

The delivery concurrency. Minimum value: 1.

1
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

None
QualifierobjectNo

The information about the service to which the function belongs.

ValuestringNo

The alias of the service to which the function belongs.

LATEST
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

InvocationTypeobjectNo

The information about the invocation type.

ValuestringNo

The invocation type. Valid values: Sync and Async.

Async
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

BodyobjectNo

The message body that is sent to the function.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The parameters that are configured if the event target is Message Queue for RabbitMQ.

InstanceIdobjectNo

The information about the Message Queue for RabbitMQ instance.

ValuestringNo

The ID of the Message Queue for RabbitMQ instance.

amqp-cn-2r42e73o****
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

VirtualHostNameobjectNo

The information about the vhost of the Message Queue for RabbitMQ instance.

ValuestringNo

The vhost name of the Message Queue for RabbitMQ instance.

rabbit-host
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

TargetTypeobjectNo

The information about the type of the resource to which events are delivered.

ValuestringNo

The type of the resource to which events are delivered. Valid values: Exchange: exchanges. Queue: queues.

Exchange/Queue
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

ExchangeobjectNo

The information about the exchange to which events are delivered. This parameter is available only if you set TargetType to Exchange.

ValuestringNo

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

a_exchange
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

RoutingKeyobjectNo

The information about the routing rule of the message. This parameter is available only if you set TargetType to Exchange.

ValuestringNo

The routing rule of the message.

housekeeping
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

QueueNameobjectNo

The information about the queue to which events are delivered. This parameter is available only if you set TargetType to Queue.

ValuestringNo

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

MyQueue
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

BodyobjectNo

The message content.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The message ID.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The properties that are used to filter messages.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The parameters that are configured if the event target is Message Queue for Apache Kafka.

InstanceIdobjectNo

The information about the Message Queue for Apache Kafka instance.

ValuestringNo

The ID of the Message Queue for Apache Kafka instance.

Defaut_1283278472_sadkj
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

TopicobjectNo

The information about the topic in Message Queue for Apache Kafka instance.

ValuestringNo

The name of the topic in Message Queue for Apache Kafka instance.

test
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

AcksobjectNo

The information about the acknowledgment (ACK) mode. If you set this parameter to 0, no response is returned from the broker. In this mode, the performance is high, but the risk of data loss is also high. If you set this parameter to 1, a response is returned when data is written to the leader. In this mode, the performance and the risk of data loss are moderate. Data loss may occur if a failure occurs on the leader. If you set this parameter to all, a response is returned when data is written to the leader and synchronized to the followers. In this mode, the performance is low, but the risk of data loss is also low. Data loss occurs if the leader and the followers fail at the same time.

ValuestringNo

The ACK mode. If you set this parameter to 0, no response is returned from the broker. In this mode, the performance is high, but the risk of data loss is also high. If you set this parameter to 1, a response is returned when data is written to the leader. In this mode, the performance and the risk of data loss are moderate. Data loss may occur if a failure occurs on the leader. If you set this parameter to all, a response is returned when data is written to the leader and synchronized to the followers. In this mode, the performance is low, but the risk of data loss is also low. Data loss occurs if the leader and the followers fail at the same time.

1
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

KeyobjectNo

The information about the message key.

ValuestringNo

The message key.

key
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

ValueobjectNo

The information about the message value.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

Sink RocketMQ Parameters

InstanceIdobjectNo

The parameters that are configured if the event target is Message Queue for Apache RocketMQ.

ValuestringNo

The ID of the Message Queue for Apache RocketMQ instance.

MQ_INST_164901546557****_BAAN****
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

TopicobjectNo

The information about the topic in the Message Queue for Apache RocketMQ instance.

ValuestringNo

The name of the topic in the Message Queue for Apache RocketMQ instance.

Mytopic
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

BodyobjectNo

The message content.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The properties that are used to filter messages.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The properties that are used to filter messages.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The properties that are used to filter messages.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

Sink SLS Parameters

ProjectobjectNo

The information about the Log Service project.

ValuestringNo

The Log Service project.

test-project
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

LogStoreobjectNo

The information about the Log Service Logstore.

ValuestringNo

The Log Service Logstore.

test-logstore
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

TopicobjectNo

The information about the topic in which logs are stored. The topic corresponds to the topic reserved field in Log Service.

ValuestringNo

The name of the topic in which logs are stored. The topic corresponds to the topic reserved field in Log Service.

testTopic
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

BodyobjectNo

The message body that is sent to Log Service.

ValuestringNo

The value before event transformation.

{ "key": "value" }
FormstringNo

The method that is used to transform events.

TEMPLATE
TemplatestringNo

The template based on which events are transformed.

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

The information about the role. If you want to authorize EventBridge to use this role to read logs in Log Service, you must select Alibaba Cloud Service for Selected Trusted Entity and EventBridge for Select Trusted Service when you create the role in the RAM console.

ValuestringNo

The role name. If you want to authorize EventBridge to use this role to read logs in Log Service, you must select Alibaba Cloud Service for Selected Trusted Entity and EventBridge for Select Trusted Service when you create the role in the RAM console.

testRole
FormstringNo

The method that is used to transform events. Default value: CONSTANT.

CONSTANT
TemplatestringNo

None.

RunOptionsobjectNo

The parameters that are configured for the runtime environment.

MaximumTaskslongNo

The concurrency level.

2
ErrorsTolerancestringNo

The fault tolerance policy. The value NONE specifies that faults are not tolerated, and the value All specifies that all faults are tolerated.

ALL
RetryStrategyobjectNo

The information about the retry policy that is used if the event fails to be pushed.

PushRetryStrategystringNo

The retry policy that is used if an event failed to be pushed. Valid values: BACKOFF_RETRY and EXPONENTIAL_DECAY_RETRY.

BACKOFFRETRY
MaximumEventAgeInSecondslongNo

The maximum period of time during which retries are performed.

512
MaximumRetryAttemptslongNo

The maximum number of retries.

2
DeadLetterQueueobjectNo

Specifies whether to enable dead-letter queues. By default, dead-letter queues are disabled. Messages that fail to be pushed are discarded after the maximum number of retries specified by the retry policy is reached.

ArnstringNo

The Alibaba Cloud Resource Name (ARN) of the dead-letter queue.

acs:ram::1317334647812936:role/rdstoecsassumekms
BatchWindowobjectNo

The information about the batch window.

CountBasedWindowintegerNo

The maximum number of events that is allowed in the batch window. If the value specified by this parameter is reached, the data in the batch window is pushed to the downstream application. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.

100
TimeBasedWindowintegerNo

The maximum period of time during which events are allowed in the batch window. Unit: seconds. If the value specified by this parameter is reached, the data in the batch window is pushed to the downstream application. If multiple batch windows exist, data is pushed if triggering conditions are met in one of the windows.

10

Response parameters

ParameterTypeDescriptionExample
object
Messagestring

The returned error message.

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

The request ID.

0FDD73AA-7A2D-5BD4-B4C0-88AFEBF5F0F5
Codestring

The returned response code. The value Success indicates that the request is successful. Other values indicate that the request failed. For more information about error codes, see Error codes.

Success
Successboolean

Indicates whether the request is successful. Valid values: true and false.

true

Examples

Sample success responses

JSONformat

{
  "Message": "The name [xxxx] of event streaming in request is already exist!",
  "RequestId": "0FDD73AA-7A2D-5BD4-B4C0-88AFEBF5F0F5",
  "Code": "Success",
  "Success": true
}

Error codes

HTTP status codeError codeError message
403ServiceNotEnableService not enable

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-02-21The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
2024-01-25The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
2023-12-28The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
2023-11-22The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Transforms
2023-10-11The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
2023-09-13The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
2023-04-21The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
2023-04-06The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403