-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sns): fifo topic with content-based deduplication support #11127 #11588
Conversation
Hi @MrArnoldPalmer, any feedback for this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand you have called the prop "fifoTopic" to correspond with the underlying cfn, however, the sqs module has this feature implemented with the prop "fifo". In the interest of consistency, would you consider changing the prop name to "fifo"?
Thanks for your work on this, definitely waiting on this feature!
Hi @MrArnoldPalmer, @tombuckley91, any further feedback regarding this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally we should add another test case to cover fifo: true
+ contenBasedDeduplication: true
@@ -70,6 +84,8 @@ export class Topic extends TopicBase { | |||
displayName: props.displayName, | |||
topicName: this.physicalName, | |||
kmsMasterKeyId: props.masterKey && props.masterKey.keyArn, | |||
contentBasedDeduplication: props.contentBasedDeduplication, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So reading the docs it seems contentBaseddeduplication
can only be true when fifo
is true
. That being the case in L2s we prefer to check for this during synth. IE: if a user passed contentBasedDeduplication: true
without setting fifo: true
, we should throw an error with a message like "contentDeduplication
can only be enabled for fifo topics."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this feedback @MrArnoldPalmer, I'll amend this later today.
@@ -103,6 +103,48 @@ export = { | |||
|
|||
test.done(); | |||
}, | |||
|
|||
'specify contentBasedDeduplication'(test: Test) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With regards to comment on contentBasedDeduplication
, this test should actually assert that an error is thrown since fifo
is not enabled.
Pull request has been modified.
Hi @MrArnoldPalmer, any further feedback following my latest changes? |
Hi @MrArnoldPalmer @tombuckley91, any further feedback for this PR? |
Hi @MrArnoldPalmer, any further feedback for this PR? Anyone else I can request to review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TY @rrhodes! Thanks for your patience.
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Add support for FIFO and content-based deduplication in SNS topics.
Closes #11127
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license