Class SnsAction
Use an SNS topic as an alarm action.
Inheritance
System.Object
SnsAction
Implements
Namespace: Amazon.CDK.AWS.CloudWatch.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SnsAction : DeputyBase, IAlarmAction
Syntax (vb)
Public Class SnsAction
Inherits DeputyBase
Implements IAlarmAction
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudWatch.Actions;
Alarm alarm;
var topic = new Topic(this, "Topic");
alarm.AddAlarmAction(new SnsAction(topic));
Synopsis
Constructors
SnsAction(ITopic) | |
SnsAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SnsAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct, IAlarm) | Returns an alarm action configuration to use an SNS topic as an alarm action. |
Constructors
SnsAction(ITopic)
SnsAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SnsAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SnsAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SnsAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct, IAlarm)
Returns an alarm action configuration to use an SNS topic as an alarm action.
public virtual IAlarmActionConfig Bind(Construct scope, IAlarm alarm)
Parameters
- scope Constructs.Construct
- alarm IAlarm
Returns