-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
sns.Topic.fromTopicArn: importinig topic forces contentBasedDeduplication = false #29532
sns.Topic.fromTopicArn: importinig topic forces contentBasedDeduplication = false #29532
Comments
I have also run into this issue. Resulting in an inability to correctly form a state machine in CDK that uses the SNSPublish Task to publish to a FIFO topic. |
Thanks for the report. Looks like #29542 is underway. We'll review the PR when it's ready. |
|
Describe the bug
When importing a topic by Arn, the constructor sets contentBasedDeduplication = false.
This means that when we call the resource method getContentBasedDeduplication(), it returns false always.
Expected Behavior
I would expect that when the resource is imported, the ARN is checked to determine whether or not contentBasedDeduplication is enabled on the Topic, then return a result that contains this.
Current Behavior
Currently .getContentBasedDeduplication() always returns false, regardless of the configuration of the actual Topic imported. This is only for imported Topics. Newly created topics return the actual value of the property.
Reproduction Steps
JAVA code:
Possible Solution
No response
Additional Information/Context
See linked commit for when the property was set. Not sure if there is possibly an underlying reason why this value needs to be false for imports, if so please let me know.
CDK CLI Version
2.131.0
Framework Version
No response
Node.js Version
NA
OS
Win11
Language
Java
Language Version
openjdk version "21.0.2" 2024-01-16 LTS
Other information
No response
The text was updated successfully, but these errors were encountered: