This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 5feda2fc35c5 CAMEL-23832: camel-alibaba-eventbridge - improve option
descriptions (#30193)
5feda2fc35c5 is described below
commit 5feda2fc35c5472e1d3036613ef0232f7ede20ad
Author: Saravanakumar Selvaraj <[email protected]>
AuthorDate: Mon Nov 16 15:03:27 2026 +0000
CAMEL-23832: camel-alibaba-eventbridge - improve option descriptions
(#30193)
Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832).
This pull request covers `camel-alibaba-eventbridge` (scheme
`alibaba-eventbridge`). It does not complete the ticket, so please keep the
ticket open.
This is the fifth of the eight Alibaba components, after
`camel-alibaba-ots` (#29991), `camel-alibaba-fc` (#30004), `camel-alibaba-kms`
(#30139, still open) and `camel-alibaba-sms` (#30144, still open). With the
eventbridge names, the texts of `operation`, `accessKey`, `secretKey` and
`serviceKeys` are the ots and fc texts merged in #29991 and #30004. The
`eventBridgeClient` text is the merged fc text with the class of eventbridge,
except that its third sentence is the merged ots sent [...]
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../catalog/components/alibaba-eventbridge.json | 52 ++---
.../alibaba/eventbridge/alibaba-eventbridge.json | 52 ++---
.../eventbridge/AlibabaEventBridgeEndpoint.java | 108 +++++++---
.../constants/AlibabaEventBridgeHeaders.java | 60 +++++-
.../builder/endpoint/StaticEndpointBuilders.java | 10 +-
.../AlibabaEventBridgeEndpointBuilderFactory.java | 237 ++++++++++++++++-----
tasks/component-descriptions.md | 2 +-
7 files changed, 380 insertions(+), 141 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
index 8a5cfb08a26e..c80254803913 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/alibaba-eventbridge.json
@@ -30,38 +30,38 @@
"healthCheckProducerEnabled": { "index": 3, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
},
"headers": {
- "CamelAlibabaEventBridgeEventBusName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event bus name override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_BUS_NAME"
},
- "CamelAlibabaEventBridgeEventSource": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event source override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_SOURCE"
},
- "CamelAlibabaEventBridgeEventType": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event type override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_TYPE"
},
- "CamelAlibabaEventBridgeEventSubject": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event subject override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_SUBJECT"
},
- "CamelAlibabaEventBridgeValidateEventSource": { "index": 4, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Validate event source against Alibaba
Cloud EventBridge", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#VALIDATE_EVENT_SOURCE"
},
- "CamelAlibabaEventBridgeValidateEventType": { "index": 5, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Validate event type against Alibaba
Cloud EventBridge rule filter patterns", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#VALIDATE_EVENT_TYPE"
},
- "CamelAlibabaEventBridgeValidateEventSpec": { "index": 6, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Validate CloudEvents 1.0 specification
constraints on map fields", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#VALIDATE_EVENT_SPEC"
},
- "CamelAlibabaEventBridgeAllowedEventSources": { "index": 7, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Object", "deprecated": false, "autowired":
false, "secret": false, "description": "Allowed event sources and source-scoped
event types per event bus (DSL string, JSON, Map, or List)", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#ALLOWED_EVENT_SOURCES"
},
- "CamelAlibabaEventBridgeEventSourceCacheTtl": { "index": 8, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Long", "deprecated": false, "autowired": false,
"secret": false, "description": "TTL in milliseconds for cached bus event
sources and types", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_SOURCE_CACHE_TTL"
},
- "CamelAlibabaEventBridgeRequestId": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Alibaba Cloud request id", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#REQUEST_ID"
}
+ "CamelAlibabaEventBridgeEventBusName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the event bus for a JSON text or Map body. This
header replaces the eventBusName option. If this header is not set, an exchange
property of the same name replaces the eventBusName option. The key
eventBusName of a Map body replac [...]
+ "CamelAlibabaEventBridgeEventSource": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The event source for a JSON text or Map body. The value must be
a URI. This header replaces the eventSource option. If this header is not set,
an exchange property of the same name replaces the eventSource option. The key
eventSource or sourc [...]
+ "CamelAlibabaEventBridgeEventType": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The event type for a JSON text or Map body. This header
replaces the eventType option. If this header is not set, an exchange property
of the same name replaces the eventType option. The key eventType or type of a
Map body replaces this header. [...]
+ "CamelAlibabaEventBridgeEventSubject": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The event subject for a JSON text or Map body. This header
replaces the eventSubject option. If this header is not set, an exchange
property of the same name replaces the eventSubject option. The key
eventSubject or subject of a Map body rep [...]
+ "CamelAlibabaEventBridgeValidateEventSource": { "index": 4, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether to check that the event bus
exists and has a rule that matches the event source. The producer calls
listEventBuses and listRules to check this. The producer also checks that each
event source that allowedEventSources lists fo [...]
+ "CamelAlibabaEventBridgeValidateEventType": { "index": 5, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether to check that the event bus
exists and has a rule that matches the event source and event type. The
producer calls listEventBuses and listRules to check this. The producer also
checks that each event type that allowedEventSourc [...]
+ "CamelAlibabaEventBridgeValidateEventSpec": { "index": 6, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether to check the keys specversion
and id of a Map body. The value of specversion must be 1.0, and the value of id
must not be blank. This header replaces the validateEventSpec option. If this
header is not set, an exchange property [...]
+ "CamelAlibabaEventBridgeAllowedEventSources": { "index": 7, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Object", "deprecated": false, "autowired":
false, "secret": false, "description": "The event sources and event types that
the producer allows on each event bus. The value must be a Map, a Collection or
a String as in the allowedEventSources option. This header replaces the
allowedEventSources option. If this header [...]
+ "CamelAlibabaEventBridgeEventSourceCacheTtl": { "index": 8, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Long", "deprecated": false, "autowired": false,
"secret": false, "description": "The time in milliseconds for which the
producer caches the result of listEventBuses and listRules for an event bus.
Only used when validateEventSource or validateEventType is true. Use 0 or less
to cache nothing. This header replaces th [...]
+ "CamelAlibabaEventBridgeRequestId": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The request ID that EventBridge returns in the response to the
operation. The producer sets it, unless the exchange fails.", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#REQUEST_ID"
}
},
"bodyTypes": {
"producerIn": { "carriers": [ "text", "bytes", "stream", "file", "map",
"list", "pojo" ], "description": "The event to publish: the JSON text of the
data of the event, as text, or as bytes, a stream or a file read in the charset
of the exchange (UTF-8 by default), with the source, the type and the bus from
the options or headers; a Map of the event fields, such as eventSource,
eventType and eventData, where a Map or a POJO as data is serialized to JSON; a
CloudEvent of the Alibaba SD [...]
"producerOut": { "carriers": [ "map" ], "javaType": "java.util.Map",
"description": "A Map with the requestId, the failedEntryCount, the
resourceOwnerAccountId and the entryList of the response, with the request id
in the CamelAlibabaEventBridgeRequestId header too. An event that EventBridge
rejects does not fail the exchange: check failedEntryCount" }
},
"properties": {
- "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"group": "producer", "label": "producer", "required": true, "type": "enum",
"javaType": "java.lang.String", "enum": [ "putEvents" ], "deprecated": false,
"autowired": false, "secret": false, "description": "Operation to perform" },
- "allowedEventSources": { "index": 1, "kind": "parameter", "displayName":
"Allowed Event Sources", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Allowed event sources and
source-scoped event types per event bus. Supports multi-bus DSL (bus[src -
type1,type2]), single-bus shorthand (src - type1,type2), JSON string, or
Map\/List objects." },
- "endpoint": { "index": 2, "kind": "parameter", "displayName": "Endpoint",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "EventBridge endpoint URL. Carries higher
precedence than region based client initialization" },
- "eventBusName": { "index": 3, "kind": "parameter", "displayName": "Event
Bus Name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Default event bus name" },
- "eventSource": { "index": 4, "kind": "parameter", "displayName": "Event
Source", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Default event source" },
- "eventSubject": { "index": 5, "kind": "parameter", "displayName": "Event
Subject", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Default event subject" },
- "eventType": { "index": 6, "kind": "parameter", "displayName": "Event
Type", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Default event type" },
- "region": { "index": 7, "kind": "parameter", "displayName": "Region",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Alibaba Cloud region" },
- "validateEventSource": { "index": 8, "kind": "parameter", "displayName":
"Validate Event Source", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"When true, verifies that the target event bus exists in Alibaba Cloud
EventBridge using listEventBuses before publishing. Also validates the
CloudEvent source URI against the allowedEventSou [...]
- "validateEventSpec": { "index": 9, "kind": "parameter", "displayName":
"Validate Event Spec", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Validate CloudEvents 1.0 specification constraints on map fields" },
- "validateEventType": { "index": 10, "kind": "parameter", "displayName":
"Validate Event Type", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"When true, verifies that the CloudEvent event type is valid for the event
source on the target event bus against Alibaba Cloud rule filter patterns
before publishing." },
- "eventSourceCacheTtl": { "index": 11, "kind": "parameter", "displayName":
"Event Source Cache TTL", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "integer", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
300000, "description": "TTL in milliseconds for caching event bus existence
lookups per bus name. Applies only when validateEventSource is true." },
+ "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"group": "producer", "label": "producer", "required": true, "type": "enum",
"javaType": "java.lang.String", "enum": [ "putEvents" ], "deprecated": false,
"autowired": false, "secret": false, "description": "The operation that the
producer performs. The CamelAlibabaEventBridgeOperation header replaces this
option for a request that the producer sends. If that header is not set, an
exchange property of the same name [...]
+ "allowedEventSources": { "index": 1, "kind": "parameter", "displayName":
"Allowed Event Sources", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "The event sources and
event types that the producer allows on each event bus. Written as JSON or as
bus blocks in the form bus1[source1 = type1,type2] | bus2[source2 = type3].
Semicolons separate the event [...]
+ "endpoint": { "index": 2, "kind": "parameter", "displayName": "Endpoint",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The endpoint of EventBridge, which is a host
name without http:\/\/ or https:\/\/. The region option does not determine the
endpoint, so this option is required. Not used when the eventBridgeClient
option is set or autowired." },
+ "eventBusName": { "index": 3, "kind": "parameter", "displayName": "Event
Bus Name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The name of the event bus for a JSON
text or Map body. The CamelAlibabaEventBridgeEventBusName header replaces this
option for a request that the producer sends. If that header is not set, an
exchange property of the same name [...]
+ "eventSource": { "index": 4, "kind": "parameter", "displayName": "Event
Source", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The event source for a JSON text or Map body.
The value must be a URI. The CamelAlibabaEventBridgeEventSource header replaces
this option for a request that the producer sends. If that header is not set,
an exchange property of th [...]
+ "eventSubject": { "index": 5, "kind": "parameter", "displayName": "Event
Subject", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The event subject for a JSON text or
Map body. The CamelAlibabaEventBridgeEventSubject header replaces this option
for a request that the producer sends. If that header is not set, an exchange
property of the same name replaces [...]
+ "eventType": { "index": 6, "kind": "parameter", "displayName": "Event
Type", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The event type for a JSON text or Map body.
The CamelAlibabaEventBridgeEventType header replaces this option for a request
that the producer sends. If that header is not set, an exchange property of the
same name replaces this option. [...]
+ "region": { "index": 7, "kind": "parameter", "displayName": "Region",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The region ID of EventBridge, for example
cn-hangzhou. The producer sends it in the HTTP header x-eventbridge-regionId of
each request. Not used when the eventBridgeClient option is set or autowired."
},
+ "validateEventSource": { "index": 8, "kind": "parameter", "displayName":
"Validate Event Source", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether to check that the event bus exists and has a rule that matches the
event source. The producer calls listEventBuses and listRules to check this.
The producer also checks that each eve [...]
+ "validateEventSpec": { "index": 9, "kind": "parameter", "displayName":
"Validate Event Spec", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether to check the keys specversion and id of a Map body. The value of
specversion must be 1.0, and the value of id must not be blank. The
CamelAlibabaEventBridgeValidateEventSpec header replac [...]
+ "validateEventType": { "index": 10, "kind": "parameter", "displayName":
"Validate Event Type", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether to check that the event bus exists and has a rule that matches the
event source and event type. The producer calls listEventBuses and listRules to
check this. The producer also checks t [...]
+ "eventSourceCacheTtl": { "index": 11, "kind": "parameter", "displayName":
"Event Source Cache TTL", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "integer", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
300000, "description": "The time in milliseconds for which the producer caches
the result of listEventBuses and listRules for an event bus. Only used when
validateEventSource or validateEventTyp [...]
"lazyStartProducer": { "index": 12, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "Autowire an existing EventBridge client
instance" },
- "accessKey": { "index": 14, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Access key for the
cloud user" },
- "secretKey": { "index": 15, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Secret key for the
cloud user" },
- "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"Configuration object for cloud service authentication" }
+ "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends its requests with
this client, and the region, endpoint, accessKey, secretKey and serviceKeys
options are not [...]
+ "accessKey": { "index": 14, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey ID
of the AccessKey pair for the requests that the producer sends to EventBridge.
If not set, the accessKey of the serviceKeys option is used, and one of the two
is required. Not used when t [...]
+ "secretKey": { "index": 15, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey
secret of the AccessKey pair for the requests that the producer sends to
EventBridge. If not set, the secretKey of the serviceKeys option is used, and
one of the two is required. Not used wh [...]
+ "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey is
the AccessKey ID and its secretKey is the AccessKey [...]
}
}
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
index 8a5cfb08a26e..c80254803913 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/generated/resources/META-INF/org/apache/camel/component/alibaba/eventbridge/alibaba-eventbridge.json
@@ -30,38 +30,38 @@
"healthCheckProducerEnabled": { "index": 3, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
},
"headers": {
- "CamelAlibabaEventBridgeEventBusName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event bus name override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_BUS_NAME"
},
- "CamelAlibabaEventBridgeEventSource": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event source override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_SOURCE"
},
- "CamelAlibabaEventBridgeEventType": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event type override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_TYPE"
},
- "CamelAlibabaEventBridgeEventSubject": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Event subject override", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_SUBJECT"
},
- "CamelAlibabaEventBridgeValidateEventSource": { "index": 4, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Validate event source against Alibaba
Cloud EventBridge", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#VALIDATE_EVENT_SOURCE"
},
- "CamelAlibabaEventBridgeValidateEventType": { "index": 5, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Validate event type against Alibaba
Cloud EventBridge rule filter patterns", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#VALIDATE_EVENT_TYPE"
},
- "CamelAlibabaEventBridgeValidateEventSpec": { "index": 6, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Validate CloudEvents 1.0 specification
constraints on map fields", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#VALIDATE_EVENT_SPEC"
},
- "CamelAlibabaEventBridgeAllowedEventSources": { "index": 7, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Object", "deprecated": false, "autowired":
false, "secret": false, "description": "Allowed event sources and source-scoped
event types per event bus (DSL string, JSON, Map, or List)", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#ALLOWED_EVENT_SOURCES"
},
- "CamelAlibabaEventBridgeEventSourceCacheTtl": { "index": 8, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Long", "deprecated": false, "autowired": false,
"secret": false, "description": "TTL in milliseconds for cached bus event
sources and types", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#EVENT_SOURCE_CACHE_TTL"
},
- "CamelAlibabaEventBridgeRequestId": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "Alibaba Cloud request id", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#REQUEST_ID"
}
+ "CamelAlibabaEventBridgeEventBusName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the event bus for a JSON text or Map body. This
header replaces the eventBusName option. If this header is not set, an exchange
property of the same name replaces the eventBusName option. The key
eventBusName of a Map body replac [...]
+ "CamelAlibabaEventBridgeEventSource": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The event source for a JSON text or Map body. The value must be
a URI. This header replaces the eventSource option. If this header is not set,
an exchange property of the same name replaces the eventSource option. The key
eventSource or sourc [...]
+ "CamelAlibabaEventBridgeEventType": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The event type for a JSON text or Map body. This header
replaces the eventType option. If this header is not set, an exchange property
of the same name replaces the eventType option. The key eventType or type of a
Map body replaces this header. [...]
+ "CamelAlibabaEventBridgeEventSubject": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The event subject for a JSON text or Map body. This header
replaces the eventSubject option. If this header is not set, an exchange
property of the same name replaces the eventSubject option. The key
eventSubject or subject of a Map body rep [...]
+ "CamelAlibabaEventBridgeValidateEventSource": { "index": 4, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether to check that the event bus
exists and has a rule that matches the event source. The producer calls
listEventBuses and listRules to check this. The producer also checks that each
event source that allowedEventSources lists fo [...]
+ "CamelAlibabaEventBridgeValidateEventType": { "index": 5, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether to check that the event bus
exists and has a rule that matches the event source and event type. The
producer calls listEventBuses and listRules to check this. The producer also
checks that each event type that allowedEventSourc [...]
+ "CamelAlibabaEventBridgeValidateEventSpec": { "index": 6, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Boolean", "deprecated": false, "autowired":
false, "secret": false, "description": "Whether to check the keys specversion
and id of a Map body. The value of specversion must be 1.0, and the value of id
must not be blank. This header replaces the validateEventSpec option. If this
header is not set, an exchange property [...]
+ "CamelAlibabaEventBridgeAllowedEventSources": { "index": 7, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Object", "deprecated": false, "autowired":
false, "secret": false, "description": "The event sources and event types that
the producer allows on each event bus. The value must be a Map, a Collection or
a String as in the allowedEventSources option. This header replaces the
allowedEventSources option. If this header [...]
+ "CamelAlibabaEventBridgeEventSourceCacheTtl": { "index": 8, "kind":
"header", "displayName": "", "group": "producer", "label": "producer",
"required": false, "javaType": "Long", "deprecated": false, "autowired": false,
"secret": false, "description": "The time in milliseconds for which the
producer caches the result of listEventBuses and listRules for an event bus.
Only used when validateEventSource or validateEventType is true. Use 0 or less
to cache nothing. This header replaces th [...]
+ "CamelAlibabaEventBridgeRequestId": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The request ID that EventBridge returns in the response to the
operation. The producer sets it, unless the exchange fails.", "constantName":
"org.apache.camel.component.alibaba.eventbridge.constants.AlibabaEventBridgeHeaders#REQUEST_ID"
}
},
"bodyTypes": {
"producerIn": { "carriers": [ "text", "bytes", "stream", "file", "map",
"list", "pojo" ], "description": "The event to publish: the JSON text of the
data of the event, as text, or as bytes, a stream or a file read in the charset
of the exchange (UTF-8 by default), with the source, the type and the bus from
the options or headers; a Map of the event fields, such as eventSource,
eventType and eventData, where a Map or a POJO as data is serialized to JSON; a
CloudEvent of the Alibaba SD [...]
"producerOut": { "carriers": [ "map" ], "javaType": "java.util.Map",
"description": "A Map with the requestId, the failedEntryCount, the
resourceOwnerAccountId and the entryList of the response, with the request id
in the CamelAlibabaEventBridgeRequestId header too. An event that EventBridge
rejects does not fail the exchange: check failedEntryCount" }
},
"properties": {
- "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"group": "producer", "label": "producer", "required": true, "type": "enum",
"javaType": "java.lang.String", "enum": [ "putEvents" ], "deprecated": false,
"autowired": false, "secret": false, "description": "Operation to perform" },
- "allowedEventSources": { "index": 1, "kind": "parameter", "displayName":
"Allowed Event Sources", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Allowed event sources and
source-scoped event types per event bus. Supports multi-bus DSL (bus[src -
type1,type2]), single-bus shorthand (src - type1,type2), JSON string, or
Map\/List objects." },
- "endpoint": { "index": 2, "kind": "parameter", "displayName": "Endpoint",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "EventBridge endpoint URL. Carries higher
precedence than region based client initialization" },
- "eventBusName": { "index": 3, "kind": "parameter", "displayName": "Event
Bus Name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Default event bus name" },
- "eventSource": { "index": 4, "kind": "parameter", "displayName": "Event
Source", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Default event source" },
- "eventSubject": { "index": 5, "kind": "parameter", "displayName": "Event
Subject", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "Default event subject" },
- "eventType": { "index": 6, "kind": "parameter", "displayName": "Event
Type", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Default event type" },
- "region": { "index": 7, "kind": "parameter", "displayName": "Region",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Alibaba Cloud region" },
- "validateEventSource": { "index": 8, "kind": "parameter", "displayName":
"Validate Event Source", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"When true, verifies that the target event bus exists in Alibaba Cloud
EventBridge using listEventBuses before publishing. Also validates the
CloudEvent source URI against the allowedEventSou [...]
- "validateEventSpec": { "index": 9, "kind": "parameter", "displayName":
"Validate Event Spec", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Validate CloudEvents 1.0 specification constraints on map fields" },
- "validateEventType": { "index": 10, "kind": "parameter", "displayName":
"Validate Event Type", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"When true, verifies that the CloudEvent event type is valid for the event
source on the target event bus against Alibaba Cloud rule filter patterns
before publishing." },
- "eventSourceCacheTtl": { "index": 11, "kind": "parameter", "displayName":
"Event Source Cache TTL", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "integer", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
300000, "description": "TTL in milliseconds for caching event bus existence
lookups per bus name. Applies only when validateEventSource is true." },
+ "operation": { "index": 0, "kind": "path", "displayName": "Operation",
"group": "producer", "label": "producer", "required": true, "type": "enum",
"javaType": "java.lang.String", "enum": [ "putEvents" ], "deprecated": false,
"autowired": false, "secret": false, "description": "The operation that the
producer performs. The CamelAlibabaEventBridgeOperation header replaces this
option for a request that the producer sends. If that header is not set, an
exchange property of the same name [...]
+ "allowedEventSources": { "index": 1, "kind": "parameter", "displayName":
"Allowed Event Sources", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "The event sources and
event types that the producer allows on each event bus. Written as JSON or as
bus blocks in the form bus1[source1 = type1,type2] | bus2[source2 = type3].
Semicolons separate the event [...]
+ "endpoint": { "index": 2, "kind": "parameter", "displayName": "Endpoint",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The endpoint of EventBridge, which is a host
name without http:\/\/ or https:\/\/. The region option does not determine the
endpoint, so this option is required. Not used when the eventBridgeClient
option is set or autowired." },
+ "eventBusName": { "index": 3, "kind": "parameter", "displayName": "Event
Bus Name", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The name of the event bus for a JSON
text or Map body. The CamelAlibabaEventBridgeEventBusName header replaces this
option for a request that the producer sends. If that header is not set, an
exchange property of the same name [...]
+ "eventSource": { "index": 4, "kind": "parameter", "displayName": "Event
Source", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The event source for a JSON text or Map body.
The value must be a URI. The CamelAlibabaEventBridgeEventSource header replaces
this option for a request that the producer sends. If that header is not set,
an exchange property of th [...]
+ "eventSubject": { "index": 5, "kind": "parameter", "displayName": "Event
Subject", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "description": "The event subject for a JSON text or
Map body. The CamelAlibabaEventBridgeEventSubject header replaces this option
for a request that the producer sends. If that header is not set, an exchange
property of the same name replaces [...]
+ "eventType": { "index": 6, "kind": "parameter", "displayName": "Event
Type", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The event type for a JSON text or Map body.
The CamelAlibabaEventBridgeEventType header replaces this option for a request
that the producer sends. If that header is not set, an exchange property of the
same name replaces this option. [...]
+ "region": { "index": 7, "kind": "parameter", "displayName": "Region",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The region ID of EventBridge, for example
cn-hangzhou. The producer sends it in the HTTP header x-eventbridge-regionId of
each request. Not used when the eventBridgeClient option is set or autowired."
},
+ "validateEventSource": { "index": 8, "kind": "parameter", "displayName":
"Validate Event Source", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether to check that the event bus exists and has a rule that matches the
event source. The producer calls listEventBuses and listRules to check this.
The producer also checks that each eve [...]
+ "validateEventSpec": { "index": 9, "kind": "parameter", "displayName":
"Validate Event Spec", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether to check the keys specversion and id of a Map body. The value of
specversion must be 1.0, and the value of id must not be blank. The
CamelAlibabaEventBridgeValidateEventSpec header replac [...]
+ "validateEventType": { "index": 10, "kind": "parameter", "displayName":
"Validate Event Type", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether to check that the event bus exists and has a rule that matches the
event source and event type. The producer calls listEventBuses and listRules to
check this. The producer also checks t [...]
+ "eventSourceCacheTtl": { "index": 11, "kind": "parameter", "displayName":
"Event Source Cache TTL", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "integer", "javaType": "long",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
300000, "description": "The time in milliseconds for which the producer caches
the result of listEventBuses and listRules for an event bus. Only used when
validateEventSource or validateEventTyp [...]
"lazyStartProducer": { "index": 12, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "Autowire an existing EventBridge client
instance" },
- "accessKey": { "index": 14, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Access key for the
cloud user" },
- "secretKey": { "index": 15, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "Secret key for the
cloud user" },
- "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"Configuration object for cloud service authentication" }
+ "eventBridgeClient": { "index": 13, "kind": "parameter", "displayName":
"EventBridge Client", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"com.aliyun.eventbridge.EventBridgeClient", "deprecated": false, "autowired":
true, "secret": false, "description": "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends its requests with
this client, and the region, endpoint, accessKey, secretKey and serviceKeys
options are not [...]
+ "accessKey": { "index": 14, "kind": "parameter", "displayName": "Access
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey ID
of the AccessKey pair for the requests that the producer sends to EventBridge.
If not set, the accessKey of the serviceKeys option is used, and one of the two
is required. Not used when t [...]
+ "secretKey": { "index": 15, "kind": "parameter", "displayName": "Secret
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "description": "The AccessKey
secret of the AccessKey pair for the requests that the producer sends to
EventBridge. If not set, the secretKey of the serviceKeys option is used, and
one of the two is required. Not used wh [...]
+ "serviceKeys": { "index": 16, "kind": "parameter", "displayName": "Service
Keys", "group": "security", "label": "security", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.alibaba.common.models.ServiceKeys", "deprecated":
false, "autowired": false, "secret": true, "security": "secret", "description":
"The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its accessKey is
the AccessKey ID and its secretKey is the AccessKey [...]
}
}
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
index d9ecb0d802ce..01e7381cd196 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/AlibabaEventBridgeEndpoint.java
@@ -54,70 +54,126 @@ import org.apache.camel.support.DefaultEndpoint;
+ " rejects does not fail the
exchange: check failedEntryCount"))
public class AlibabaEventBridgeEndpoint extends DefaultEndpoint {
- @UriPath(description = "Operation to perform", displayName = "Operation",
label = "producer",
- enums = "putEvents")
+ @UriPath(description = "The operation that the producer performs. The
CamelAlibabaEventBridgeOperation header replaces this"
+ + " option for a request that the producer sends.
If that header is not set, an exchange property of"
+ + " the same name replaces this option.",
+ displayName = "Operation", label = "producer", enums =
"putEvents")
@Metadata(required = true)
private String operation;
- @UriParam(description = "Alibaba Cloud region", displayName = "Region")
+ @UriParam(description = "The region ID of EventBridge, for example
cn-hangzhou. The producer sends it in the HTTP header"
+ + " x-eventbridge-regionId of each request. Not
used when the eventBridgeClient option is set or"
+ + " autowired.",
+ displayName = "Region")
@Metadata(required = true)
private String region;
- @UriParam(description = "EventBridge endpoint URL. Carries higher
precedence than region based client initialization",
+ @UriParam(description = "The endpoint of EventBridge, which is a host name
without http:// or https://. The region option"
+ + " does not determine the endpoint, so this
option is required. Not used when the"
+ + " eventBridgeClient option is set or autowired.",
displayName = "Endpoint")
private String endpoint;
- @UriParam(description = "Access key for the cloud user", displayName =
"Access Key", security = "secret",
- label = "security")
+ @UriParam(description = "The AccessKey ID of the AccessKey pair for the
requests that the producer sends to EventBridge. If"
+ + " not set, the accessKey of the serviceKeys
option is used, and one of the two is required. Not"
+ + " used when the eventBridgeClient option is set
or autowired.",
+ displayName = "Access Key", security = "secret", label =
"security")
private String accessKey;
- @UriParam(description = "Secret key for the cloud user", displayName =
"Secret Key", security = "secret",
- label = "security")
+ @UriParam(description = "The AccessKey secret of the AccessKey pair for
the requests that the producer sends to"
+ + " EventBridge. If not set, the secretKey of the
serviceKeys option is used, and one of the two is"
+ + " required. Not used when the eventBridgeClient
option is set or autowired.",
+ displayName = "Secret Key", security = "secret", label =
"security")
private String secretKey;
- @UriParam(description = "Configuration object for cloud service
authentication", displayName = "Service Keys",
- security = "secret", label = "security")
+ @UriParam(description = "The AccessKey pair as an
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its"
+ + " accessKey is the AccessKey ID and its
secretKey is the AccessKey secret. Each of the two is"
+ + " used when the option of the same name is not
set. Not used when the eventBridgeClient option is"
+ + " set or autowired.",
+ displayName = "Service Keys", security = "secret", label =
"security")
private ServiceKeys serviceKeys;
- @UriParam(description = "Default event bus name", displayName = "Event Bus
Name")
+ @UriParam(description = "The name of the event bus for a JSON text or Map
body. The CamelAlibabaEventBridgeEventBusName"
+ + " header replaces this option for a request that
the producer sends. If that header is not set,"
+ + " an exchange property of the same name replaces
this option. The key eventBusName of a Map body"
+ + " replaces the three. One of the three is
required for a JSON text body, or a Map body without"
+ + " that key.",
+ displayName = "Event Bus Name")
private String eventBusName;
- @UriParam(description = "Default event source", displayName = "Event
Source")
+ @UriParam(description = "The event source for a JSON text or Map body. The
value must be a URI. The"
+ + " CamelAlibabaEventBridgeEventSource header
replaces this option for a request that the producer"
+ + " sends. If that header is not set, an exchange
property of the same name replaces this option."
+ + " The key eventSource or source of a Map body
replaces the three. One of the three is required"
+ + " for a JSON text body, or a Map body without
that key.",
+ displayName = "Event Source")
private String eventSource;
- @UriParam(description = "Default event type", displayName = "Event Type")
+ @UriParam(description = "The event type for a JSON text or Map body. The
CamelAlibabaEventBridgeEventType header replaces"
+ + " this option for a request that the producer
sends. If that header is not set, an exchange"
+ + " property of the same name replaces this
option. The key eventType or type of a Map body"
+ + " replaces the three. One of the three is
required for a JSON text body, or a Map body without"
+ + " that key.",
+ displayName = "Event Type")
private String eventType;
- @UriParam(description = "Default event subject", displayName = "Event
Subject")
+ @UriParam(description = "The event subject for a JSON text or Map body.
The CamelAlibabaEventBridgeEventSubject header"
+ + " replaces this option for a request that the
producer sends. If that header is not set, an"
+ + " exchange property of the same name replaces
this option. The key eventSubject or subject of a"
+ + " Map body replaces the three. If neither the
three nor that key is set, the producer adds no"
+ + " event subject to the event.",
+ displayName = "Event Subject")
private String eventSubject;
- @UriParam(description = "When true, verifies that the target event bus
exists in Alibaba Cloud EventBridge"
- + " using listEventBuses before publishing. Also
validates the CloudEvent source URI against the"
- + " allowedEventSources whitelist when that option
is set.",
+ @UriParam(description = "Whether to check that the event bus exists and
has a rule that matches the event source. The"
+ + " producer calls listEventBuses and listRules to
check this. The producer also checks that each"
+ + " event source that allowedEventSources lists
for the event bus matches a rule. The"
+ + " CamelAlibabaEventBridgeValidateEventSource
header replaces this option for a request that the"
+ + " producer sends. If that header is not set, an
exchange property of the same name replaces this"
+ + " option.",
displayName = "Validate Event Source", label = "producer",
defaultValue = "false")
private boolean validateEventSource;
- @UriParam(description = "When true, verifies that the CloudEvent event
type is valid for the event source on the"
- + " target event bus against Alibaba Cloud rule
filter patterns before publishing.",
+ @UriParam(description = "Whether to check that the event bus exists and
has a rule that matches the event source and event"
+ + " type. The producer calls listEventBuses and
listRules to check this. The producer also checks"
+ + " that each event type that allowedEventSources
lists for the event bus matches a rule. The"
+ + " CamelAlibabaEventBridgeValidateEventType
header replaces this option for a request that the"
+ + " producer sends. If that header is not set, an
exchange property of the same name replaces this"
+ + " option.",
displayName = "Validate Event Type", label = "producer",
defaultValue = "false")
private boolean validateEventType;
- @UriParam(description = "Validate CloudEvents 1.0 specification
constraints on map fields",
+ @UriParam(description = "Whether to check the keys specversion and id of a
Map body. The value of specversion must be 1.0,"
+ + " and the value of id must not be blank. The
CamelAlibabaEventBridgeValidateEventSpec header"
+ + " replaces this option for a request that the
producer sends. If that header is not set, an"
+ + " exchange property of the same name replaces
this option.",
displayName = "Validate Event Spec", label = "producer",
defaultValue = "true")
private boolean validateEventSpec = true;
- @UriParam(description = "Allowed event sources and source-scoped event
types per event bus. Supports multi-bus DSL"
- + " (bus[src -> type1,type2]), single-bus
shorthand (src -> type1,type2), JSON string, or Map/List objects.",
+ @UriParam(description = "The event sources and event types that the
producer allows on each event bus. Written as JSON or"
+ + " as bus blocks in the form bus1[source1 =
type1,type2] | bus2[source2 = type3]. Semicolons"
+ + " separate the event sources of one event bus. A
value in the form source1 = type1,type2 applies"
+ + " to the event bus that eventBusName sets for
the exchange. If eventBusName is not set, it"
+ + " applies to every event bus. The
CamelAlibabaEventBridgeAllowedEventSources header replaces this"
+ + " option for a request that the producer sends.
If that header is not set, an exchange property"
+ + " of the same name replaces this option. If none
of the three is set, the producer allows every"
+ + " event bus, event source and event type.",
displayName = "Allowed Event Sources", label = "producer")
private String allowedEventSources;
- @UriParam(description = "TTL in milliseconds for caching event bus
existence lookups per bus name."
- + " Applies only when validateEventSource is
true.",
+ @UriParam(description = "The time in milliseconds for which the producer
caches the result of listEventBuses and listRules"
+ + " for an event bus. Only used when
validateEventSource or validateEventType is true. Use 0 or"
+ + " less to cache nothing. The
CamelAlibabaEventBridgeEventSourceCacheTtl header replaces this"
+ + " option for a request that the producer sends.
If that header is not set, an exchange property"
+ + " of the same name replaces this option.",
displayName = "Event Source Cache TTL", label =
"producer,advanced", defaultValue = "300000")
private long eventSourceCacheTtl = 300000L;
- @UriParam(description = "Autowire an existing EventBridge client
instance", displayName = "EventBridge Client",
- label = "advanced")
+ @UriParam(description = "To use a custom
com.aliyun.eventbridge.EventBridgeClient. The producer sends its requests with"
+ + " this client, and the region, endpoint,
accessKey, secretKey and serviceKeys options are not"
+ + " used. If no client is set or autowired, the
Camel endpoint creates an EventBridgeClient from"
+ + " these options. It creates this client when the
producer processes its first message.",
+ displayName = "EventBridge Client", label = "advanced")
@Metadata(autowired = true)
private EventBridgeClient eventBridgeClient;
diff --git
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/constants/AlibabaEventBridgeHeaders.java
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/constants/AlibabaEventBridgeHeaders.java
index 361a3ba1c469..570841aa1a96 100644
---
a/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/constants/AlibabaEventBridgeHeaders.java
+++
b/components/camel-alibaba/camel-alibaba-eventbridge/src/main/java/org/apache/camel/component/alibaba/eventbridge/constants/AlibabaEventBridgeHeaders.java
@@ -20,40 +20,80 @@ import org.apache.camel.spi.Metadata;
public sealed class AlibabaEventBridgeHeaders permits
AlibabaEventBridgeProperties {
- @Metadata(label = "producer", description = "Event bus name override",
javaType = "String")
+ @Metadata(label = "producer",
+ description = "The name of the event bus for a JSON text or Map
body. This header replaces the eventBusName"
+ + " option. If this header is not set, an exchange
property of the same name replaces the"
+ + " eventBusName option. The key eventBusName of a
Map body replaces this header.",
+ javaType = "String")
public static final String EVENT_BUS_NAME =
"CamelAlibabaEventBridgeEventBusName";
- @Metadata(label = "producer", description = "Event source override",
javaType = "String")
+ @Metadata(label = "producer",
+ description = "The event source for a JSON text or Map body. The
value must be a URI. This header replaces the"
+ + " eventSource option. If this header is not set,
an exchange property of the same name replaces"
+ + " the eventSource option. The key eventSource or
source of a Map body replaces this header.",
+ javaType = "String")
public static final String EVENT_SOURCE =
"CamelAlibabaEventBridgeEventSource";
- @Metadata(label = "producer", description = "Event type override",
javaType = "String")
+ @Metadata(label = "producer",
+ description = "The event type for a JSON text or Map body. This
header replaces the eventType option. If this"
+ + " header is not set, an exchange property of the
same name replaces the eventType option. The key"
+ + " eventType or type of a Map body replaces this
header.",
+ javaType = "String")
public static final String EVENT_TYPE = "CamelAlibabaEventBridgeEventType";
- @Metadata(label = "producer", description = "Event subject override",
javaType = "String")
+ @Metadata(label = "producer",
+ description = "The event subject for a JSON text or Map body.
This header replaces the eventSubject option. If"
+ + " this header is not set, an exchange property
of the same name replaces the eventSubject option."
+ + " The key eventSubject or subject of a Map body
replaces this header.",
+ javaType = "String")
public static final String EVENT_SUBJECT =
"CamelAlibabaEventBridgeEventSubject";
- @Metadata(label = "producer", description = "Validate event source against
Alibaba Cloud EventBridge",
+ @Metadata(label = "producer",
+ description = "Whether to check that the event bus exists and
has a rule that matches the event source. The"
+ + " producer calls listEventBuses and listRules to
check this. The producer also checks that each"
+ + " event source that allowedEventSources lists
for the event bus matches a rule. This header"
+ + " replaces the validateEventSource option. If
this header is not set, an exchange property of the"
+ + " same name replaces the validateEventSource
option.",
javaType = "Boolean")
public static final String VALIDATE_EVENT_SOURCE =
"CamelAlibabaEventBridgeValidateEventSource";
- @Metadata(label = "producer", description = "Validate event type against
Alibaba Cloud EventBridge rule filter patterns",
+ @Metadata(label = "producer",
+ description = "Whether to check that the event bus exists and
has a rule that matches the event source and event"
+ + " type. The producer calls listEventBuses and
listRules to check this. The producer also checks"
+ + " that each event type that allowedEventSources
lists for the event bus matches a rule. This"
+ + " header replaces the validateEventType option.
If this header is not set, an exchange property"
+ + " of the same name replaces the
validateEventType option.",
javaType = "Boolean")
public static final String VALIDATE_EVENT_TYPE =
"CamelAlibabaEventBridgeValidateEventType";
- @Metadata(label = "producer", description = "Validate CloudEvents 1.0
specification constraints on map fields",
+ @Metadata(label = "producer",
+ description = "Whether to check the keys specversion and id of a
Map body. The value of specversion must be 1.0,"
+ + " and the value of id must not be blank. This
header replaces the validateEventSpec option. If"
+ + " this header is not set, an exchange property
of the same name replaces the validateEventSpec"
+ + " option.",
javaType = "Boolean")
public static final String VALIDATE_EVENT_SPEC =
"CamelAlibabaEventBridgeValidateEventSpec";
@Metadata(label = "producer",
- description = "Allowed event sources and source-scoped event
types per event bus (DSL string, JSON, Map, or List)",
+ description = "The event sources and event types that the
producer allows on each event bus. The value must be a"
+ + " Map, a Collection or a String as in the
allowedEventSources option. This header replaces the"
+ + " allowedEventSources option. If this header is
not set, an exchange property of the same name"
+ + " replaces the allowedEventSources option.",
javaType = "Object")
public static final String ALLOWED_EVENT_SOURCES =
"CamelAlibabaEventBridgeAllowedEventSources";
- @Metadata(label = "producer", description = "TTL in milliseconds for
cached bus event sources and types",
+ @Metadata(label = "producer",
+ description = "The time in milliseconds for which the producer
caches the result of listEventBuses and listRules"
+ + " for an event bus. Only used when
validateEventSource or validateEventType is true. Use 0 or"
+ + " less to cache nothing. This header replaces
the eventSourceCacheTtl option. If this header is"
+ + " not set, an exchange property of the same name
replaces the eventSourceCacheTtl option.",
javaType = "Long")
public static final String EVENT_SOURCE_CACHE_TTL =
"CamelAlibabaEventBridgeEventSourceCacheTtl";
- @Metadata(label = "producer", description = "Alibaba Cloud request id",
javaType = "String")
+ @Metadata(label = "producer",
+ description = "The request ID that EventBridge returns in the
response to the operation. The producer sets it,"
+ + " unless the exchange fails.",
+ javaType = "String")
public static final String REQUEST_ID = "CamelAlibabaEventBridgeRequestId";
AlibabaEventBridgeHeaders() {
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 833b71f07460..43ea5e0ef854 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -313,7 +313,10 @@ public class StaticEndpointBuilders {
* Syntax: <code>alibaba-eventbridge:operation</code>
*
* Path parameter: operation (required)
- * Operation to perform
+ * The operation that the producer performs. The
+ * CamelAlibabaEventBridgeOperation header replaces this option for a
+ * request that the producer sends. If that header is not set, an exchange
+ * property of the same name replaces this option.
* There are 1 enums and the value can be one of: putEvents
*
* @param path operation
@@ -333,7 +336,10 @@ public class StaticEndpointBuilders {
* Syntax: <code>alibaba-eventbridge:operation</code>
*
* Path parameter: operation (required)
- * Operation to perform
+ * The operation that the producer performs. The
+ * CamelAlibabaEventBridgeOperation header replaces this option for a
+ * request that the producer sends. If that header is not set, an exchange
+ * property of the same name replaces this option.
* There are 1 enums and the value can be one of: putEvents
*
* @param componentName to use a custom component name for the endpoint
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
index f5059880a28b..77824c4af4ba 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AlibabaEventBridgeEndpointBuilderFactory.java
@@ -45,9 +45,17 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
}
/**
- * Allowed event sources and source-scoped event types per event bus.
- * Supports multi-bus DSL (bus[src - type1,type2]), single-bus
shorthand
- * (src - type1,type2), JSON string, or Map/List objects.
+ * The event sources and event types that the producer allows on each
+ * event bus. Written as JSON or as bus blocks in the form bus1[source1
+ * = type1,type2] | bus2[source2 = type3]. Semicolons separate the
event
+ * sources of one event bus. A value in the form source1 = type1,type2
+ * applies to the event bus that eventBusName sets for the exchange. If
+ * eventBusName is not set, it applies to every event bus. The
+ * CamelAlibabaEventBridgeAllowedEventSources header replaces this
+ * option for a request that the producer sends. If that header is not
+ * set, an exchange property of the same name replaces this option. If
+ * none of the three is set, the producer allows every event bus, event
+ * source and event type.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -61,8 +69,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * EventBridge endpoint URL. Carries higher precedence than region
based
- * client initialization.
+ * The endpoint of EventBridge, which is a host name without http:// or
+ * https://. The region option does not determine the endpoint, so this
+ * option is required. Not used when the eventBridgeClient option is
set
+ * or autowired.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -76,7 +86,12 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Default event bus name.
+ * The name of the event bus for a JSON text or Map body. The
+ * CamelAlibabaEventBridgeEventBusName header replaces this option for
a
+ * request that the producer sends. If that header is not set, an
+ * exchange property of the same name replaces this option. The key
+ * eventBusName of a Map body replaces the three. One of the three is
+ * required for a JSON text body, or a Map body without that key.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -90,7 +105,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Default event source.
+ * The event source for a JSON text or Map body. The value must be a
+ * URI. The CamelAlibabaEventBridgeEventSource header replaces this
+ * option for a request that the producer sends. If that header is not
+ * set, an exchange property of the same name replaces this option. The
+ * key eventSource or source of a Map body replaces the three. One of
+ * the three is required for a JSON text body, or a Map body without
+ * that key.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -104,7 +125,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Default event subject.
+ * The event subject for a JSON text or Map body. The
+ * CamelAlibabaEventBridgeEventSubject header replaces this option for
a
+ * request that the producer sends. If that header is not set, an
+ * exchange property of the same name replaces this option. The key
+ * eventSubject or subject of a Map body replaces the three. If neither
+ * the three nor that key is set, the producer adds no event subject to
+ * the event.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -118,7 +145,12 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Default event type.
+ * The event type for a JSON text or Map body. The
+ * CamelAlibabaEventBridgeEventType header replaces this option for a
+ * request that the producer sends. If that header is not set, an
+ * exchange property of the same name replaces this option. The key
+ * eventType or type of a Map body replaces the three. One of the three
+ * is required for a JSON text body, or a Map body without that key.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -132,7 +164,9 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Alibaba Cloud region.
+ * The region ID of EventBridge, for example cn-hangzhou. The producer
+ * sends it in the HTTP header x-eventbridge-regionId of each request.
+ * Not used when the eventBridgeClient option is set or autowired.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -147,10 +181,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory
{
return this;
}
/**
- * When true, verifies that the target event bus exists in Alibaba
Cloud
- * EventBridge using listEventBuses before publishing. Also validates
- * the CloudEvent source URI against the allowedEventSources whitelist
- * when that option is set.
+ * Whether to check that the event bus exists and has a rule that
+ * matches the event source. The producer calls listEventBuses and
+ * listRules to check this. The producer also checks that each event
+ * source that allowedEventSources lists for the event bus matches a
+ * rule. The CamelAlibabaEventBridgeValidateEventSource header replaces
+ * this option for a request that the producer sends. If that header is
+ * not set, an exchange property of the same name replaces this option.
*
* The option is a: <code>boolean</code> type.
*
@@ -165,10 +202,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory
{
return this;
}
/**
- * When true, verifies that the target event bus exists in Alibaba
Cloud
- * EventBridge using listEventBuses before publishing. Also validates
- * the CloudEvent source URI against the allowedEventSources whitelist
- * when that option is set.
+ * Whether to check that the event bus exists and has a rule that
+ * matches the event source. The producer calls listEventBuses and
+ * listRules to check this. The producer also checks that each event
+ * source that allowedEventSources lists for the event bus matches a
+ * rule. The CamelAlibabaEventBridgeValidateEventSource header replaces
+ * this option for a request that the producer sends. If that header is
+ * not set, an exchange property of the same name replaces this option.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -183,7 +223,11 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Validate CloudEvents 1.0 specification constraints on map fields.
+ * Whether to check the keys specversion and id of a Map body. The
value
+ * of specversion must be 1.0, and the value of id must not be blank.
+ * The CamelAlibabaEventBridgeValidateEventSpec header replaces this
+ * option for a request that the producer sends. If that header is not
+ * set, an exchange property of the same name replaces this option.
*
* The option is a: <code>boolean</code> type.
*
@@ -198,7 +242,11 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Validate CloudEvents 1.0 specification constraints on map fields.
+ * Whether to check the keys specversion and id of a Map body. The
value
+ * of specversion must be 1.0, and the value of id must not be blank.
+ * The CamelAlibabaEventBridgeValidateEventSpec header replaces this
+ * option for a request that the producer sends. If that header is not
+ * set, an exchange property of the same name replaces this option.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -213,9 +261,14 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * When true, verifies that the CloudEvent event type is valid for the
- * event source on the target event bus against Alibaba Cloud rule
- * filter patterns before publishing.
+ * Whether to check that the event bus exists and has a rule that
+ * matches the event source and event type. The producer calls
+ * listEventBuses and listRules to check this. The producer also checks
+ * that each event type that allowedEventSources lists for the event
bus
+ * matches a rule. The CamelAlibabaEventBridgeValidateEventType header
+ * replaces this option for a request that the producer sends. If that
+ * header is not set, an exchange property of the same name replaces
+ * this option.
*
* The option is a: <code>boolean</code> type.
*
@@ -230,9 +283,14 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * When true, verifies that the CloudEvent event type is valid for the
- * event source on the target event bus against Alibaba Cloud rule
- * filter patterns before publishing.
+ * Whether to check that the event bus exists and has a rule that
+ * matches the event source and event type. The producer calls
+ * listEventBuses and listRules to check this. The producer also checks
+ * that each event type that allowedEventSources lists for the event
bus
+ * matches a rule. The CamelAlibabaEventBridgeValidateEventType header
+ * replaces this option for a request that the producer sends. If that
+ * header is not set, an exchange property of the same name replaces
+ * this option.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -247,7 +305,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Access key for the cloud user.
+ * The AccessKey ID of the AccessKey pair for the requests that the
+ * producer sends to EventBridge. If not set, the accessKey of the
+ * serviceKeys option is used, and one of the two is required. Not used
+ * when the eventBridgeClient option is set or autowired.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -261,7 +322,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Secret key for the cloud user.
+ * The AccessKey secret of the AccessKey pair for the requests that the
+ * producer sends to EventBridge. If not set, the secretKey of the
+ * serviceKeys option is used, and one of the two is required. Not used
+ * when the eventBridgeClient option is set or autowired.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -275,7 +339,12 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey is the AccessKey ID and its secretKey is the AccessKey
+ * secret. Each of the two is used when the option of the same name is
+ * not set. Not used when the eventBridgeClient option is set or
+ * autowired.
*
* The option is a:
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -290,7 +359,12 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Configuration object for cloud service authentication.
+ * The AccessKey pair as an
+ * org.apache.camel.component.alibaba.common.models.ServiceKeys. Its
+ * accessKey is the AccessKey ID and its secretKey is the AccessKey
+ * secret. Each of the two is used when the option of the same name is
+ * not set. Not used when the eventBridgeClient option is set or
+ * autowired.
*
* The option will be converted to a
*
<code>org.apache.camel.component.alibaba.common.models.ServiceKeys</code> type.
@@ -317,8 +391,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
}
/**
- * TTL in milliseconds for caching event bus existence lookups per bus
- * name. Applies only when validateEventSource is true.
+ * The time in milliseconds for which the producer caches the result of
+ * listEventBuses and listRules for an event bus. Only used when
+ * validateEventSource or validateEventType is true. Use 0 or less to
+ * cache nothing. The CamelAlibabaEventBridgeEventSourceCacheTtl header
+ * replaces this option for a request that the producer sends. If that
+ * header is not set, an exchange property of the same name replaces
+ * this option.
*
* The option is a: <code>long</code> type.
*
@@ -333,8 +412,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * TTL in milliseconds for caching event bus existence lookups per bus
- * name. Applies only when validateEventSource is true.
+ * The time in milliseconds for which the producer caches the result of
+ * listEventBuses and listRules for an event bus. Only used when
+ * validateEventSource or validateEventType is true. Use 0 or less to
+ * cache nothing. The CamelAlibabaEventBridgeEventSourceCacheTtl header
+ * replaces this option for a request that the producer sends. If that
+ * header is not set, an exchange property of the same name replaces
+ * this option.
*
* The option will be converted to a <code>long</code> type.
*
@@ -395,7 +479,12 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Autowire an existing EventBridge client instance.
+ * To use a custom com.aliyun.eventbridge.EventBridgeClient. The
+ * producer sends its requests with this client, and the region,
+ * endpoint, accessKey, secretKey and serviceKeys options are not used.
+ * If no client is set or autowired, the Camel endpoint creates an
+ * EventBridgeClient from these options. It creates this client when
the
+ * producer processes its first message.
*
* The option is a:
* <code>com.aliyun.eventbridge.EventBridgeClient</code> type.
@@ -410,7 +499,12 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return this;
}
/**
- * Autowire an existing EventBridge client instance.
+ * To use a custom com.aliyun.eventbridge.EventBridgeClient. The
+ * producer sends its requests with this client, and the region,
+ * endpoint, accessKey, secretKey and serviceKeys options are not used.
+ * If no client is set or autowired, the Camel endpoint creates an
+ * EventBridgeClient from these options. It creates this client when
the
+ * producer processes its first message.
*
* The option will be converted to a
* <code>com.aliyun.eventbridge.EventBridgeClient</code> type.
@@ -451,7 +545,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
* Syntax: <code>alibaba-eventbridge:operation</code>
*
* Path parameter: operation (required)
- * Operation to perform
+ * The operation that the producer performs. The
+ * CamelAlibabaEventBridgeOperation header replaces this option for a
+ * request that the producer sends. If that header is not set, an
+ * exchange property of the same name replaces this option.
* There are 1 enums and the value can be one of: putEvents
*
* @param path operation
@@ -471,7 +568,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
* Syntax: <code>alibaba-eventbridge:operation</code>
*
* Path parameter: operation (required)
- * Operation to perform
+ * The operation that the producer performs. The
+ * CamelAlibabaEventBridgeOperation header replaces this option for a
+ * request that the producer sends. If that header is not set, an
+ * exchange property of the same name replaces this option.
* There are 1 enums and the value can be one of: putEvents
*
* @param componentName to use a custom component name for the endpoint
@@ -495,7 +595,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
public static final AlibabaEventBridgeHeaderNameBuilder INSTANCE = new
AlibabaEventBridgeHeaderNameBuilder();
/**
- * Event bus name override.
+ * The name of the event bus for a JSON text or Map body. This header
+ * replaces the eventBusName option. If this header is not set, an
+ * exchange property of the same name replaces the eventBusName option.
+ * The key eventBusName of a Map body replaces this header.
*
* The option is a: {@code String} type.
*
@@ -508,7 +611,11 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeEventBusName";
}
/**
- * Event source override.
+ * The event source for a JSON text or Map body. The value must be a
+ * URI. This header replaces the eventSource option. If this header is
+ * not set, an exchange property of the same name replaces the
+ * eventSource option. The key eventSource or source of a Map body
+ * replaces this header.
*
* The option is a: {@code String} type.
*
@@ -520,7 +627,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeEventSource";
}
/**
- * Event type override.
+ * The event type for a JSON text or Map body. This header replaces the
+ * eventType option. If this header is not set, an exchange property of
+ * the same name replaces the eventType option. The key eventType or
+ * type of a Map body replaces this header.
*
* The option is a: {@code String} type.
*
@@ -532,7 +642,10 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeEventType";
}
/**
- * Event subject override.
+ * The event subject for a JSON text or Map body. This header replaces
+ * the eventSubject option. If this header is not set, an exchange
+ * property of the same name replaces the eventSubject option. The key
+ * eventSubject or subject of a Map body replaces this header.
*
* The option is a: {@code String} type.
*
@@ -545,7 +658,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeEventSubject";
}
/**
- * Validate event source against Alibaba Cloud EventBridge.
+ * Whether to check that the event bus exists and has a rule that
+ * matches the event source. The producer calls listEventBuses and
+ * listRules to check this. The producer also checks that each event
+ * source that allowedEventSources lists for the event bus matches a
+ * rule. This header replaces the validateEventSource option. If this
+ * header is not set, an exchange property of the same name replaces
the
+ * validateEventSource option.
*
* The option is a: {@code Boolean} type.
*
@@ -558,8 +677,13 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeValidateEventSource";
}
/**
- * Validate event type against Alibaba Cloud EventBridge rule filter
- * patterns.
+ * Whether to check that the event bus exists and has a rule that
+ * matches the event source and event type. The producer calls
+ * listEventBuses and listRules to check this. The producer also checks
+ * that each event type that allowedEventSources lists for the event
bus
+ * matches a rule. This header replaces the validateEventType option.
If
+ * this header is not set, an exchange property of the same name
+ * replaces the validateEventType option.
*
* The option is a: {@code Boolean} type.
*
@@ -572,7 +696,11 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeValidateEventType";
}
/**
- * Validate CloudEvents 1.0 specification constraints on map fields.
+ * Whether to check the keys specversion and id of a Map body. The
value
+ * of specversion must be 1.0, and the value of id must not be blank.
+ * This header replaces the validateEventSpec option. If this header is
+ * not set, an exchange property of the same name replaces the
+ * validateEventSpec option.
*
* The option is a: {@code Boolean} type.
*
@@ -585,8 +713,11 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeValidateEventSpec";
}
/**
- * Allowed event sources and source-scoped event types per event bus
- * (DSL string, JSON, Map, or List).
+ * The event sources and event types that the producer allows on each
+ * event bus. The value must be a Map, a Collection or a String as in
+ * the allowedEventSources option. This header replaces the
+ * allowedEventSources option. If this header is not set, an exchange
+ * property of the same name replaces the allowedEventSources option.
*
* The option is a: {@code Object} type.
*
@@ -599,7 +730,12 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeAllowedEventSources";
}
/**
- * TTL in milliseconds for cached bus event sources and types.
+ * The time in milliseconds for which the producer caches the result of
+ * listEventBuses and listRules for an event bus. Only used when
+ * validateEventSource or validateEventType is true. Use 0 or less to
+ * cache nothing. This header replaces the eventSourceCacheTtl option.
+ * If this header is not set, an exchange property of the same name
+ * replaces the eventSourceCacheTtl option.
*
* The option is a: {@code Long} type.
*
@@ -612,7 +748,8 @@ public interface AlibabaEventBridgeEndpointBuilderFactory {
return "CamelAlibabaEventBridgeEventSourceCacheTtl";
}
/**
- * Alibaba Cloud request id.
+ * The request ID that EventBridge returns in the response to the
+ * operation. The producer sets it, unless the exchange fails.
*
* The option is a: {@code String} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index c418988659f7..72064fb11c09 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -58,7 +58,7 @@ or removes its row.
| camel-ai-prompt | ai-prompt | |
| camel-ai-resource | ai-resource | |
| camel-ai-tool | ai-tool | |
-| camel-alibaba-eventbridge | alibaba-eventbridge | |
+| camel-alibaba-eventbridge | alibaba-eventbridge | yes |
| camel-alibaba-fc | alibaba-fc | yes |
| camel-alibaba-kms | alibaba-kms | |
| camel-alibaba-mns | alibaba-mns | |