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 214e97f52ef5d01d26c7dd5ba7d51292afae0ec8 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Aug 4 12:00:44 2020 +0200 Regen website docs --- .../modules/ROOT/pages/aws2-s3-component.adoc | 2 +- .../modules/ROOT/pages/aws2-sqs-component.adoc | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/components/modules/ROOT/pages/aws2-s3-component.adoc b/docs/components/modules/ROOT/pages/aws2-s3-component.adoc index f1c3d17..ef457a1 100644 --- a/docs/components/modules/ROOT/pages/aws2-s3-component.adoc +++ b/docs/components/modules/ROOT/pages/aws2-s3-component.adoc @@ -1,7 +1,7 @@ [[aws2-s3-component]] = AWS 2 S3 Storage Service Component //THIS FILE IS COPIED: EDIT THE SOURCE FILE: -:page-source: components/camel-aws2-glacier/bin/src/main/docs/aws2-s3-component.adoc +:page-source: components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc :docTitle: AWS 2 S3 Storage Service :artifactId: camel-aws2-s3 :description: Store and retrieve objects from AWS S3 Storage Service using AWS SDK version 2.x. diff --git a/docs/components/modules/ROOT/pages/aws2-sqs-component.adoc b/docs/components/modules/ROOT/pages/aws2-sqs-component.adoc index 9e4a0ac..19362f0 100644 --- a/docs/components/modules/ROOT/pages/aws2-sqs-component.adoc +++ b/docs/components/modules/ROOT/pages/aws2-sqs-component.adoc @@ -332,6 +332,16 @@ consumers. - deleteMessage - listQueues +== Send Message + +You can set a `SendMessageBatchRequest` or an `Iterable` + +------------------------------------------------------------------------------------------------------ +from("direct:start") + .setBody(constant("Camel rocks!")) + .to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=eu-west-1"); +------------------------------------------------------------------------------------------------------ + == Send Batch Message You can set a `SendMessageBatchRequest` or an `Iterable` @@ -350,7 +360,7 @@ from("direct:start") exchange.getIn().setBody(c); } }) - .to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=EU_WEST_1"); + .to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=eu-west-1"); ------------------------------------------------------------------------------------------------------ As result you'll get an exchange containing a `SendMessageBatchResponse` instance, that you can examinate to check what messages were successfull and what not. @@ -364,7 +374,7 @@ Use deleteMessage operation to delete a single message. You'll need to set a rec from("direct:start") .setHeader(SqsConstants.SQS_OPERATION, constant("deleteMessage")) .setHeader(SqsConstants.RECEIPT_HANDLE, constant("123456")) - .to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=EU_WEST_1"); + .to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=eu-west-1"); ------------------------------------------------------------------------------------------------------ As result you'll get an exchange containing a `DeleteMessageResponse` instance, that you can use to check if the message was deleted or not. @@ -375,7 +385,8 @@ Use listQueues operation to list queues. ------------------------------------------------------------------------------------------------------ from("direct:start") - .setHeader(SqsConstants.SQS_OPERATION, constant("listQueues")).to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=EU_WEST_1"); + .setHeader(SqsConstants.SQS_OPERATION, constant("listQueues")) + .to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=eu-west-1"); ------------------------------------------------------------------------------------------------------ As result you'll get an exchange containing a `ListQueuesResponse` instance, that you can examinate to check the actual queues. @@ -386,7 +397,8 @@ Use purgeQueue operation to purge queue. ------------------------------------------------------------------------------------------------------ from("direct:start") - .setHeader(SqsConstants.SQS_OPERATION, constant("purgeQueue")).to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=EU_WEST_1"); + .setHeader(SqsConstants.SQS_OPERATION, constant("purgeQueue")) + .to("aws2-sqs://camel-1?accessKey=RAW(xxx)&secretKey=RAW(xxx)®ion=eu-west-1"); ------------------------------------------------------------------------------------------------------ As result you'll get an exchange containing a `PurgeQueueResponse` instance.