Skip to content

Commit

Permalink
Support Subject as header into sns fifo sink
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed Sep 14, 2021
1 parent a6adb92 commit 6deed50
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ metadata:
spec:
definition:
title: AWS SNS FIFO Sink
description: Send message to an AWS SNS FIFO Topic
description: |-
Send message to an AWS SNS FIFO Topic
The Kamelet expects the following headers to be set:
- `subject` / `ce-subject`: the subject of the message
required:
- topicNameOrArn
- accessKey
Expand Down Expand Up @@ -66,6 +71,18 @@ spec:
from:
uri: kamelet:source
steps:
- choice:
when:
- simple: "${header[subject]}"
steps:
- set-header:
name: CamelAwsSnsSubject
simple: "${header[subject]}"
- simple: "${header[ce-subject]}"
steps:
- set-header:
name: CamelAwsSnsSubject
simple: "${header[ce-subject]}"
- set-property:
name: contentBasedDeduplication
constant: "{{contentBasedDeduplication}}"
Expand Down

0 comments on commit 6deed50

Please sign in to comment.