Class SnsTopicProps
Customize the SNS Topic Event Target.
Inheritance
System.Object
SnsTopicProps
Implements
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.AWS.Events.Targets.dll
Syntax (csharp)
public class SnsTopicProps : Object, ISnsTopicProps
Syntax (vb)
Public Class SnsTopicProps
Inherits Object
Implements ISnsTopicProps
Remarks
ExampleMetadata: infused
Examples
Rule onCommitRule;
Topic topic;
onCommitRule.AddTarget(new SnsTopic(topic, new SnsTopicProps {
Message = RuleTargetInput.FromText($"A commit was pushed to the repository {codecommit.ReferenceEvent.repositoryName} on branch {codecommit.ReferenceEvent.referenceName}")
}));
Synopsis
Constructors
SnsTopicProps() |
Properties
Message | The message to send to the topic. |
Constructors
SnsTopicProps()
public SnsTopicProps()
Properties
Message
The message to send to the topic.
public RuleTargetInput Message { get; set; }
Property Value
Remarks
Default: the entire EventBridge event