sns.Topic.fromTopicArn: importinig topic forces contentBasedDeduplication = false #29532
Labels
@aws-cdk/aws-sns
Related to Amazon Simple Notification Service
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
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: