This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 36f06b318a26cd1f833c7451ac0ce554da31fdb7 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Sep 22 08:44:49 2020 +0200 Camel-AWS2-Eventbridge: Added eventbus name as option --- .../camel/catalog/docs/aws2-eventbridge-component.adoc | 6 ++++-- .../aws2/eventbridge/EventbridgeComponentConfigurer.java | 5 +++++ .../aws2/eventbridge/EventbridgeEndpointConfigurer.java | 5 +++++ .../camel/component/aws2/eventbridge/aws2-eventbridge.json | 2 ++ .../src/main/docs/aws2-eventbridge-component.adoc | 6 ++++-- .../aws2/eventbridge/EventbridgeConfiguration.java | 13 +++++++++++++ .../component/aws2/eventbridge/EventbridgeProducer.java | 2 ++ .../dsl/Aws2EventbridgeComponentBuilderFactory.java | 13 +++++++++++++ .../endpoint/dsl/EventbridgeEndpointBuilderFactory.java | 11 +++++++++++ .../modules/ROOT/pages/aws2-eventbridge-component.adoc | 6 ++++-- 10 files changed, 63 insertions(+), 6 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc index 7671c2c..24bca63 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc @@ -46,7 +46,7 @@ You can append query options to the URI in the following format, // component options: START -The AWS 2 Eventbridge component supports 15 options, which are listed below. +The AWS 2 Eventbridge component supports 16 options, which are listed below. @@ -56,6 +56,7 @@ The AWS 2 Eventbridge component supports 15 options, which are listed below. | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. | true | boolean | *configuration* (producer) | Component configuration | | EventbridgeConfiguration | *eventbridgeClient* (producer) | To use a existing configured AWS Eventbridge as client | | EventBridgeClient +| *eventbusName* (producer) | The eventbus name | | String | *eventPatternFile* (producer) | EventPattern File | | String | *lazyStartProducer* (producer) | 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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *operation* (producer) | *Required* The operation to perform. There are 2 enums and the value can be one of: putRule, putTargets | putRule | EventbridgeOperations @@ -93,7 +94,7 @@ with the following path and query parameters: |=== -=== Query Parameters (15 parameters): +=== Query Parameters (16 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -101,6 +102,7 @@ with the following path and query parameters: | Name | Description | Default | Type | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. | true | boolean | *eventbridgeClient* (producer) | To use a existing configured AWS Eventbridge as client | | EventBridgeClient +| *eventbusName* (producer) | The eventbus name | | String | *eventPatternFile* (producer) | EventPattern File | | String | *lazyStartProducer* (producer) | 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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *operation* (producer) | *Required* The operation to perform. There are 2 enums and the value can be one of: putRule, putTargets | putRule | EventbridgeOperations diff --git a/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeComponentConfigurer.java b/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeComponentConfigurer.java index b9c00a1..6edce80 100644 --- a/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeComponentConfigurer.java +++ b/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeComponentConfigurer.java @@ -37,6 +37,8 @@ public class EventbridgeComponentConfigurer extends PropertyConfigurerSupport im case "eventPatternFile": getOrCreateConfiguration(target).setEventPatternFile(property(camelContext, java.lang.String.class, value)); return true; case "eventbridgeclient": case "eventbridgeClient": getOrCreateConfiguration(target).setEventbridgeClient(property(camelContext, software.amazon.awssdk.services.eventbridge.EventBridgeClient.class, value)); return true; + case "eventbusname": + case "eventbusName": getOrCreateConfiguration(target).setEventbusName(property(camelContext, java.lang.String.class, value)); return true; case "lazystartproducer": case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; case "operation": getOrCreateConfiguration(target).setOperation(property(camelContext, org.apache.camel.component.aws2.eventbridge.EventbridgeOperations.class, value)); return true; @@ -66,6 +68,7 @@ public class EventbridgeComponentConfigurer extends PropertyConfigurerSupport im answer.put("configuration", org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration.class); answer.put("eventPatternFile", java.lang.String.class); answer.put("eventbridgeClient", software.amazon.awssdk.services.eventbridge.EventBridgeClient.class); + answer.put("eventbusName", java.lang.String.class); answer.put("lazyStartProducer", boolean.class); answer.put("operation", org.apache.camel.component.aws2.eventbridge.EventbridgeOperations.class); answer.put("pojoRequest", boolean.class); @@ -93,6 +96,8 @@ public class EventbridgeComponentConfigurer extends PropertyConfigurerSupport im case "eventPatternFile": return getOrCreateConfiguration(target).getEventPatternFile(); case "eventbridgeclient": case "eventbridgeClient": return getOrCreateConfiguration(target).getEventbridgeClient(); + case "eventbusname": + case "eventbusName": return getOrCreateConfiguration(target).getEventbusName(); case "lazystartproducer": case "lazyStartProducer": return target.isLazyStartProducer(); case "operation": return getOrCreateConfiguration(target).getOperation(); diff --git a/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeEndpointConfigurer.java b/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeEndpointConfigurer.java index 8f26101..4af50a2 100644 --- a/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeEndpointConfigurer.java +++ b/components/camel-aws2-eventbridge/src/generated/java/org/apache/camel/component/aws2/eventbridge/EventbridgeEndpointConfigurer.java @@ -29,6 +29,8 @@ public class EventbridgeEndpointConfigurer extends PropertyConfigurerSupport imp case "eventPatternFile": target.getConfiguration().setEventPatternFile(property(camelContext, java.lang.String.class, value)); return true; case "eventbridgeclient": case "eventbridgeClient": target.getConfiguration().setEventbridgeClient(property(camelContext, software.amazon.awssdk.services.eventbridge.EventBridgeClient.class, value)); return true; + case "eventbusname": + case "eventbusName": target.getConfiguration().setEventbusName(property(camelContext, java.lang.String.class, value)); return true; case "lazystartproducer": case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true; case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.aws2.eventbridge.EventbridgeOperations.class, value)); return true; @@ -58,6 +60,7 @@ public class EventbridgeEndpointConfigurer extends PropertyConfigurerSupport imp answer.put("basicPropertyBinding", boolean.class); answer.put("eventPatternFile", java.lang.String.class); answer.put("eventbridgeClient", software.amazon.awssdk.services.eventbridge.EventBridgeClient.class); + answer.put("eventbusName", java.lang.String.class); answer.put("lazyStartProducer", boolean.class); answer.put("operation", org.apache.camel.component.aws2.eventbridge.EventbridgeOperations.class); answer.put("pojoRequest", boolean.class); @@ -85,6 +88,8 @@ public class EventbridgeEndpointConfigurer extends PropertyConfigurerSupport imp case "eventPatternFile": return target.getConfiguration().getEventPatternFile(); case "eventbridgeclient": case "eventbridgeClient": return target.getConfiguration().getEventbridgeClient(); + case "eventbusname": + case "eventbusName": return target.getConfiguration().getEventbusName(); case "lazystartproducer": case "lazyStartProducer": return target.isLazyStartProducer(); case "operation": return target.getConfiguration().getOperation(); diff --git a/components/camel-aws2-eventbridge/src/generated/resources/org/apache/camel/component/aws2/eventbridge/aws2-eventbridge.json b/components/camel-aws2-eventbridge/src/generated/resources/org/apache/camel/component/aws2/eventbridge/aws2-eventbridge.json index 780a3c7..98c13ce 100644 --- a/components/camel-aws2-eventbridge/src/generated/resources/org/apache/camel/component/aws2/eventbridge/aws2-eventbridge.json +++ b/components/camel-aws2-eventbridge/src/generated/resources/org/apache/camel/component/aws2/eventbridge/aws2-eventbridge.json @@ -25,6 +25,7 @@ "autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover Client", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "Setting the autoDiscoverClient mechanism, if true, the component will look for a client instanc [...] "configuration": { "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "deprecated": false, "secret": false, "description": "Component configuration" }, "eventbridgeClient": { "kind": "property", "displayName": "Eventbridge Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.eventbridge.EventBridgeClient", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "To use a existing configured AWS Eventbridge as client" }, + "eventbusName": { "kind": "property", "displayName": "Eventbus Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "The eventbus name" }, "eventPatternFile": { "kind": "property", "displayName": "Event Pattern File", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "EventPattern File" }, "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 producer may otherwise fail during starting and cause the r [...] "operation": { "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.eventbridge.EventbridgeOperations", "enum": [ "putRule", "putTargets" ], "deprecated": false, "deprecationNote": "", "secret": false, "defaultValue": "putRule", "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": " [...] @@ -42,6 +43,7 @@ "label": { "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "Logical name" }, "autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover Client", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "Setting the autoDiscoverClient mechanism, if true, the component will look for a client instan [...] "eventbridgeClient": { "kind": "parameter", "displayName": "Eventbridge Client", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.eventbridge.EventBridgeClient", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "To use a existing configured AWS Eventbridge as client" }, + "eventbusName": { "kind": "parameter", "displayName": "Eventbus Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "The eventbus name" }, "eventPatternFile": { "kind": "parameter", "displayName": "Event Pattern File", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": "EventPattern File" }, "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 producer may otherwise fail during starting and cause the [...] "operation": { "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.eventbridge.EventbridgeOperations", "enum": [ "putRule", "putTargets" ], "deprecated": false, "deprecationNote": "", "secret": false, "defaultValue": "putRule", "configurationClass": "org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration", "configurationField": "configuration", "description": [...] diff --git a/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc b/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc index 7671c2c..24bca63 100644 --- a/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc +++ b/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc @@ -46,7 +46,7 @@ You can append query options to the URI in the following format, // component options: START -The AWS 2 Eventbridge component supports 15 options, which are listed below. +The AWS 2 Eventbridge component supports 16 options, which are listed below. @@ -56,6 +56,7 @@ The AWS 2 Eventbridge component supports 15 options, which are listed below. | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. | true | boolean | *configuration* (producer) | Component configuration | | EventbridgeConfiguration | *eventbridgeClient* (producer) | To use a existing configured AWS Eventbridge as client | | EventBridgeClient +| *eventbusName* (producer) | The eventbus name | | String | *eventPatternFile* (producer) | EventPattern File | | String | *lazyStartProducer* (producer) | 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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *operation* (producer) | *Required* The operation to perform. There are 2 enums and the value can be one of: putRule, putTargets | putRule | EventbridgeOperations @@ -93,7 +94,7 @@ with the following path and query parameters: |=== -=== Query Parameters (15 parameters): +=== Query Parameters (16 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -101,6 +102,7 @@ with the following path and query parameters: | Name | Description | Default | Type | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. | true | boolean | *eventbridgeClient* (producer) | To use a existing configured AWS Eventbridge as client | | EventBridgeClient +| *eventbusName* (producer) | The eventbus name | | String | *eventPatternFile* (producer) | EventPattern File | | String | *lazyStartProducer* (producer) | 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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *operation* (producer) | *Required* The operation to perform. There are 2 enums and the value can be one of: putRule, putTargets | putRule | EventbridgeOperations diff --git a/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeConfiguration.java b/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeConfiguration.java index 5b9bcdb..bd0d981 100644 --- a/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeConfiguration.java +++ b/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeConfiguration.java @@ -55,6 +55,8 @@ public class EventbridgeConfiguration implements Cloneable { private boolean autoDiscoverClient = true; @UriParam private String eventPatternFile; + @UriParam + private String eventbusName = "default"; public EventBridgeClient getEventbridgeClient() { return eventbridgeClient; @@ -189,6 +191,17 @@ public class EventbridgeConfiguration implements Cloneable { public void setEventPatternFile(String eventPatternFile) { this.eventPatternFile = eventPatternFile; } + + public String getEventbusName() { + return eventbusName; + } + + /** + * The eventbus name + */ + public void setEventbusName(String eventbusName) { + this.eventbusName = eventbusName; + } // ************************************************* // // ************************************************* diff --git a/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeProducer.java b/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeProducer.java index 2ba82ed..610b862 100644 --- a/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeProducer.java +++ b/components/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeProducer.java @@ -118,6 +118,7 @@ public class EventbridgeProducer extends DefaultProducer { String eventPattern = exchange.getIn().getHeader(EventbridgeConstants.EVENT_PATTERN, String.class); builder.eventPattern(eventPattern); } + builder.eventBusName(getConfiguration().getEventbusName()); PutRuleResponse result; try { result = eventbridgeClient.putRule(builder.build()); @@ -156,6 +157,7 @@ public class EventbridgeProducer extends DefaultProducer { } else { throw new IllegalArgumentException("At least one targets must be specified"); } + builder.eventBusName(getConfiguration().getEventbusName()); PutTargetsResponse result; try { result = eventbridgeClient.putTargets(builder.build()); diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2EventbridgeComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2EventbridgeComponentBuilderFactory.java index 1befb41..bf9dfc4 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2EventbridgeComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2EventbridgeComponentBuilderFactory.java @@ -90,6 +90,18 @@ public interface Aws2EventbridgeComponentBuilderFactory { return this; } /** + * The eventbus name. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: producer + */ + default Aws2EventbridgeComponentBuilder eventbusName( + java.lang.String eventbusName) { + doSetProperty("eventbusName", eventbusName); + return this; + } + /** * EventPattern File. * * The option is a: <code>java.lang.String</code> type. @@ -280,6 +292,7 @@ public interface Aws2EventbridgeComponentBuilderFactory { case "autoDiscoverClient": getOrCreateConfiguration((EventbridgeComponent) component).setAutoDiscoverClient((boolean) value); return true; case "configuration": ((EventbridgeComponent) component).setConfiguration((org.apache.camel.component.aws2.eventbridge.EventbridgeConfiguration) value); return true; case "eventbridgeClient": getOrCreateConfiguration((EventbridgeComponent) component).setEventbridgeClient((software.amazon.awssdk.services.eventbridge.EventBridgeClient) value); return true; + case "eventbusName": getOrCreateConfiguration((EventbridgeComponent) component).setEventbusName((java.lang.String) value); return true; case "eventPatternFile": getOrCreateConfiguration((EventbridgeComponent) component).setEventPatternFile((java.lang.String) value); return true; case "lazyStartProducer": ((EventbridgeComponent) component).setLazyStartProducer((boolean) value); return true; case "operation": getOrCreateConfiguration((EventbridgeComponent) component).setOperation((org.apache.camel.component.aws2.eventbridge.EventbridgeOperations) value); return true; diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/EventbridgeEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/EventbridgeEndpointBuilderFactory.java index b7f1881..da852fd 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/EventbridgeEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/EventbridgeEndpointBuilderFactory.java @@ -96,6 +96,17 @@ public interface EventbridgeEndpointBuilderFactory { return this; } /** + * The eventbus name. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: producer + */ + default EventbridgeEndpointBuilder eventbusName(String eventbusName) { + doSetProperty("eventbusName", eventbusName); + return this; + } + /** * EventPattern File. * * The option is a: <code>java.lang.String</code> type. diff --git a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc index 89a79b4..e335113 100644 --- a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc +++ b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc @@ -48,7 +48,7 @@ You can append query options to the URI in the following format, // component options: START -The AWS 2 Eventbridge component supports 15 options, which are listed below. +The AWS 2 Eventbridge component supports 16 options, which are listed below. @@ -58,6 +58,7 @@ The AWS 2 Eventbridge component supports 15 options, which are listed below. | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. | true | boolean | *configuration* (producer) | Component configuration | | EventbridgeConfiguration | *eventbridgeClient* (producer) | To use a existing configured AWS Eventbridge as client | | EventBridgeClient +| *eventbusName* (producer) | The eventbus name | | String | *eventPatternFile* (producer) | EventPattern File | | String | *lazyStartProducer* (producer) | 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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *operation* (producer) | *Required* The operation to perform. There are 2 enums and the value can be one of: putRule, putTargets | putRule | EventbridgeOperations @@ -95,7 +96,7 @@ with the following path and query parameters: |=== -=== Query Parameters (15 parameters): +=== Query Parameters (16 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -103,6 +104,7 @@ with the following path and query parameters: | Name | Description | Default | Type | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. | true | boolean | *eventbridgeClient* (producer) | To use a existing configured AWS Eventbridge as client | | EventBridgeClient +| *eventbusName* (producer) | The eventbus name | | String | *eventPatternFile* (producer) | EventPattern File | | String | *lazyStartProducer* (producer) | 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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...] | *operation* (producer) | *Required* The operation to perform. There are 2 enums and the value can be one of: putRule, putTargets | putRule | EventbridgeOperations