forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sns): fifo topic with content-based deduplication support aws#11127
(aws#11588) Add support for FIFO and content-based deduplication in SNS topics. Closes aws#11127 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
5 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/@aws-cdk/aws-sns/test/integ.sns-fifo.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Resources": { | ||
"MyTopic86869434": { | ||
"Type": "AWS::SNS::Topic", | ||
"Properties": { | ||
"ContentBasedDeduplication": true, | ||
"DisplayName": "fooDisplayName", | ||
"FifoTopic": true, | ||
"TopicName": "fooTopic.fifo" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { App, Stack, StackProps } from '@aws-cdk/core'; | ||
import { Topic } from '../lib'; | ||
|
||
class SNSFifoInteg extends Stack { | ||
constructor(scope: App, id: string, props?: StackProps) { | ||
super(scope, id, props); | ||
|
||
new Topic(this, 'MyTopic', { | ||
topicName: 'fooTopic.fifo', | ||
displayName: 'fooDisplayName', | ||
contentBasedDeduplication: true, | ||
fifo: true, | ||
}); | ||
} | ||
} | ||
|
||
const app = new App(); | ||
|
||
new SNSFifoInteg(app, 'SNSFifoInteg'); | ||
|
||
app.synth(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters