Tom Bensimhon
07/19/2021, 8:01 AMconst topic = new Topic(app, "slack-lambda-logs-1", {
snsTopic: {
topicName: "slack-lambda-logs",topicArn:"arn:example:topic"
},
});
Frank
import * as sns from '@aws-cdk/aws-sns';
import * as lambdaDest from '@aws-cdk/aws-lambda-destinations';
const topic = sns.Topic.fromTopicArn(this, "ImportedTopic", "arn:example:topic");
onFailure: new lambdaDest.SnsDestination(topic);
Frank
Tom Bensimhon
07/19/2021, 8:13 AMTom Bensimhon
07/19/2021, 8:29 AMnew lambdaDest.SnsDestination(topic)
Argument of type 'import("g:/code/genoox/aws-hs-org-registration/node_modules/@aws-cdk/aws-sns/lib/topic-base").ITopic' is not assignable to parameter of type 'import("g:/code/genoox/aws-hs-org-registration/node_modules/@aws-cdk/aws-lambda-destinations/node_modules/@aws-cdk/aws-sns/lib/topic-base").ITopic'.
Types of property 'addSubscription' are incompatible.
Type '(subscription: import("g:/code/genoox/aws-hs-org-registration/node_modules/@aws-cdk/aws-sns/lib/subscriber").ITopicSubscription) => void' is not assignable to type '(subscription: import("g:/code/genoox/aws-hs-org-registration/node_modules/@aws-cdk/aws-lambda-destinations/node_modules/@aws-cdk/aws-sns/lib/subscriber").ITopicSubscription) => void'.
Types of parameters 'subscription' and 'subscription' are incompatible.
Type 'import("g:/code/genoox/aws-hs-org-registration/node_modules/@aws-cdk/aws-lambda-destinations/node_modules/@aws-cdk/aws-sns/lib/subscriber").ITopicSubscription' is not assignable to type 'import("g:/code/genoox/aws-hs-org-registration/node_modules/@aws-cdk/aws-sns/lib/subscriber").ITopicSubscription'.
The types of 'bind(...).deadLetterQueue' are incompatible between these types.
Tom Bensimhon
07/19/2021, 8:30 AMTom Bensimhon
07/19/2021, 8:30 AMapp.setDefaultFunctionProps({
onFailure: new lambdaDest.SnsDestination(topic),
Frank
Frank
Tom Bensimhon
08/02/2021, 7:22 AMTom Bensimhon
08/02/2021, 7:24 AM