CodePipeline CDK: What class implements INotificationRuleTarget?

0

We are trying to establish a pipeline notification rule to SNS topic to Microsoft Teams channel (via Lambda function). This has already been accomplished multiple times with manual configuration, but now we want to implement it with automation with CDK.

https://docs.aws.amazon.com/cdk/api/v1/dotnet/api/Amazon.CDK.AWS.CodePipeline.Pipeline.html#Amazon_CDK_AWS_CodePipeline_Pipeline_NotifyOnExecutionStateChange_System_String_Amazon_CDK_AWS_CodeStarNotifications_INotificationRuleTarget_Amazon_CDK_AWS_CodeStarNotifications_INotificationRuleOptions_

The NotifyOnExecutionStateChange() wants an INotificationRuleTarget, but I cannot find anything that implements that interface.

https://docs.aws.amazon.com/cdk/api/v1/dotnet/api/Amazon.CDK.AWS.CodeStarNotifications.html

The CodeStarNotifications library does not appear to have a corresponding class to that interface.

What's the class to use?

icelava
質問済み 2年前433ビュー
1回答
0
承認された回答

It is the SNS.Topic class itself that implements INotificationRuleTarget.

https://docs.aws.amazon.com/cdk/api/v2/dotnet/api/Amazon.CDK.AWS.SNS.Topic.html

icelava
回答済み 2年前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ