Show / Hide Table of Contents

Class SnsAction

Use an SNS topic as an alarm action.

Inheritance
object
SnsAction
Implements
IAlarmAction
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)

Use an SNS topic as an alarm action.

Methods

Bind(Construct, IAlarm)

Returns an alarm action configuration to use an SNS topic as an alarm action.

Constructors

SnsAction(ITopic)

Use an SNS topic as an alarm action.

public SnsAction(ITopic topic)
Parameters
topic ITopic
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.CloudWatch.Actions;
            Alarm alarm;


            var topic = new Topic(this, "Topic");
            alarm.AddAlarmAction(new SnsAction(topic));

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 Construct
alarm IAlarm
Returns

IAlarmActionConfig

Remarks

ExampleMetadata: infused

Implements

IAlarmAction
Back to top Generated by DocFX