The AWS SNS component allows messages to be sent to an Amazon Simple Notification Topic.
URI Syntax: aws2-sns:topicNameOrArn
Path parameters
Name | Description | Default | Type |
|---|---|---|---|
topicNameorArn (producer) | (required) Topic name or ARN | β | String |
Query parameters
Name | Description | Default | Type |
|---|---|---|---|
accessKey(security) | Amazon AWS access key. | β | String |
secretKey(security) | Amazon AWS secret key. | β | String |
The flow starts with a POST request to the /hello endpoint with a message in the body.
Then, it logs the received content.
Next, it publishes the message to AWS SNS:
{sns-arn} (Amazon Resource Name of the topic)us-east-1 (AWS region where the topic is configured)accessKey and secretKey (AWS credentials stored in variables, indicated by double curly braces). Read about flow variables configuration.
IMPORTANTWhen using
accessKeyandsecretKeyas query parameters, you need to pay attention to special characters. If the values contain characters like+,/or=, use theRAW()prefix to avoid encoding issues. See an example:Where
xxxxxandyyyyyare the actual key values.The
RAW()ensures that Camel treats credentials as literal text, avoiding misinterpretation of special characters. See more details at How do I configure endpoints?
We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more