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
- Loading branch information
Ross Rhodes
committed
Nov 19, 2020
1 parent
9b72fc8
commit d74a3a8
Showing
4 changed files
with
92 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
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, | ||
fifoTopic: 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