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
posta 2 anni fa433 visualizzazioni
1 Risposta
0
Risposta accettata

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
con risposta 2 anni fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande