1. Home
  2. Integrations
  3. c AWS Simple Notification System (SNS)

c AWS Simple Notification System (SNS)

Available connectors

The AWS SNS component allows messages to be sent to an Amazon Simple Notification Topic.

URI Syntax: aws2-sns:topicNameOrArn

Main fields

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

Example

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:

  • Topic: identified by {sns-arn} (Amazon Resource Name of the topic)
  • Region: us-east-1 (AWS region where the topic is configured)
  • Authentication: accessKey and secretKey (AWS credentials)
  • The body content is published as a message to the topic.

IMPORTANT

When using accessKey and secretKey as query parameters, you need to pay attention to special characters. If the values contain characters like +, / or =, use the RAW() prefix to avoid encoding issues. See an example:

Where xxxxx and yyyyy are 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?

cURL

Result

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more