There is some confusion in the docs here <https://...
# guide
a
There is some confusion in the docs here https://docs.serverless-stack.com/constructs/Topic#importing-an-existing-topic
Copy code
import { Topic } from "@aws-cdk/aws-sns";

new Topic(this, "Topic", {
  subscribers: ["src/subscriber1.main", "src/subscriber2.main"],
  snsTopic: Topic.fromTopicArn(this, "MySnsTopic", topicArn),
});
the
new Topic
is referencing
Topic
from
sst
and the
Topic.fromTopicArn
is referencing
Topic
from
aws-sns
but both of them have the same variable name in the code
f
Nice catch Aram! Updated the doc.