Aram
09/02/2021, 1:48 PMimport { 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 codeFrank