You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/02/14 14:41:13 UTC

[camel] 07/11: CAMEL-14552 - Create an AWS-SNS component based on SDK v2, Regen docs

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 b8d479681a263ee83fb9c2f738e6eff827bd7a4b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 14 14:48:39 2020 +0100

    CAMEL-14552 - Create an AWS-SNS component based on SDK v2, Regen docs
---
 .../resources/org/apache/camel/component/aws2/sns/aws2-sns.json       | 4 ++--
 components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc       | 4 ++--
 .../org/apache/camel/builder/component/ComponentsBuilderFactory.java  | 2 +-
 .../camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java   | 4 ++--
 core/camel-componentdsl/src/generated/resources/metadata.json         | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json b/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json
index 205e6be..416c827 100644
--- a/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json
+++ b/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json
@@ -5,7 +5,7 @@
     "extendsScheme": "",
     "syntax": "aws2-sns:topicNameOrArn",
     "title": "AWS 2 Simple Notification System",
-    "description": "The aws-sns component is used for sending messages to an Amazon Simple Notification Topic.",
+    "description": "The aws2-sns component is used for sending messages to an Amazon Simple Notification Topic.",
     "label": "cloud,mobile,messaging",
     "deprecated": false,
     "async": false,
@@ -39,7 +39,7 @@
     "proxyPort": { "kind": "parameter", "displayName": "Proxy Port", "group": "producer", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the SNS client" },
     "proxyProtocol": { "kind": "parameter", "displayName": "Proxy Protocol", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "To define a proxy protocol when instantiating the SNS client" },
     "queueUrl": { "kind": "parameter", "displayName": "Queue Url", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "The queueUrl to subscribe to" },
-    "region": { "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "The region in which SNS client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_E [...]
+    "region": { "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "The region in which SNS client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-eas [...]
     "serverSideEncryptionEnabled": { "kind": "parameter", "displayName": "Server Side Encryption Enabled", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Define if Server Side Encryption is enabled or not on the topic" },
     "subject": { "kind": "parameter", "displayName": "Subject", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "The subject which is used if the message header 'CamelAwsSnsSubject' is not present." },
     "subscribeSNStoSQS": { "kind": "parameter", "displayName": "Subscribe SNSto SQS", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Define if the subscription between SNS Topic and SQS must be done or not" },
diff --git a/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc b/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc
index ac904c3..6b83fa5 100644
--- a/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc
+++ b/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc
@@ -92,7 +92,7 @@ with the following path and query parameters:
 | *proxyPort* (producer) | To define a proxy port when instantiating the SNS client |  | Integer
 | *proxyProtocol* (producer) | To define a proxy protocol when instantiating the SNS client. The value can be one of: HTTP, HTTPS | HTTPS | Protocol
 | *queueUrl* (producer) | The queueUrl to subscribe to |  | String
-| *region* (producer) | The region in which SNS client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name() |  | String
+| *region* (producer) | The region in which SNS client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1) You'll need to use the name Region.EU_WEST_1.id() |  | String
 | *serverSideEncryptionEnabled* (producer) | Define if Server Side Encryption is enabled or not on the topic | false | boolean
 | *subject* (producer) | The subject which is used if the message header 'CamelAwsSnsSubject' is not present. |  | String
 | *subscribeSNStoSQS* (producer) | Define if the subscription between SNS Topic and SQS must be done or not | false | boolean
@@ -197,4 +197,4 @@ Maven users will need to add the following dependency to their pom.xml.
 where `$\{camel-version\}` must be replaced by the actual version of Camel.
 
 
-include::camel-spring-boot::page$aws-sns-starter.adoc[]
\ No newline at end of file
+include::camel-spring-boot::page$aws-sns-starter.adoc[]
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 529afb0..911cdc8 100644
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -587,7 +587,7 @@ public interface ComponentsBuilderFactory {
     }
     /**
      * AWS 2 Simple Notification System (camel-aws2-sns)
-     * The aws-sns component is used for sending messages to an Amazon Simple
+     * The aws2-sns component is used for sending messages to an Amazon Simple
      * Notification Topic.
      * 
      * Category: cloud,mobile,messaging
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java
index 79c61c9..ad36bc4 100644
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java
@@ -23,7 +23,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
 import org.apache.camel.component.aws2.sns.Sns2Component;
 
 /**
- * The aws-sns component is used for sending messages to an Amazon Simple
+ * The aws2-sns component is used for sending messages to an Amazon Simple
  * Notification Topic.
  * 
  * Generated by camel-package-maven-plugin - do not edit this file!
@@ -33,7 +33,7 @@ public interface Aws2SnsComponentBuilderFactory {
 
     /**
      * AWS 2 Simple Notification System (camel-aws2-sns)
-     * The aws-sns component is used for sending messages to an Amazon Simple
+     * The aws2-sns component is used for sending messages to an Amazon Simple
      * Notification Topic.
      * 
      * Category: cloud,mobile,messaging
diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json
index 52f22b2..f1edc81 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -587,7 +587,7 @@
     "extendsScheme": "",
     "syntax": "aws2-sns:topicNameOrArn",
     "title": "AWS 2 Simple Notification System",
-    "description": "The aws-sns component is used for sending messages to an Amazon Simple Notification Topic.",
+    "description": "The aws2-sns component is used for sending messages to an Amazon Simple Notification Topic.",
     "label": "cloud,mobile,messaging",
     "deprecated": false,
     "deprecationNote": "cloud,mobile,messaging",