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 82d8117b98982ff862b699a5a176751bf5c23209 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri Feb 14 14:48:00 2020 +0100 CAMEL-14552 - Create an AWS-SNS component based on SDK v2, Fixed descriptions --- .../org/apache/camel/component/aws2/sns/Sns2Configuration.java | 10 ++++++---- .../java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java index 19785a3..a0511d6 100644 --- a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java +++ b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java @@ -19,6 +19,7 @@ package org.apache.camel.component.aws2.sns; import org.apache.camel.RuntimeCamelException; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriParams; + import software.amazon.awssdk.core.Protocol; import software.amazon.awssdk.services.sns.SnsClient; @@ -150,7 +151,7 @@ public class Sns2Configuration implements Cloneable { public void setMessageStructure(String messageStructure) { this.messageStructure = messageStructure; } - + public Protocol getProxyProtocol() { return proxyProtocol; } @@ -189,9 +190,10 @@ public class Sns2Configuration implements Cloneable { } /** - * 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() + * 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() */ public void setRegion(String region) { this.region = region; diff --git a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java index 410b778..9aa94d1 100644 --- a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java +++ b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java @@ -52,7 +52,7 @@ import software.amazon.awssdk.services.sns.model.SubscribeResponse; import software.amazon.awssdk.services.sns.model.Topic; /** - * 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. */ @UriEndpoint(firstVersion = "3.1.0", scheme = "aws2-sns", title = "AWS 2 Simple Notification System", syntax = "aws2-sns:topicNameOrArn", producerOnly = true, label = "cloud,mobile,messaging")