SnsAction

class aws_cdk.aws_cloudwatch_actions.SnsAction(topic)

Bases: object

Use an SNS topic as an alarm action.

Example:

import aws_cdk.aws_cloudwatch_actions as cw_actions
# alarm is of type Alarm


topic = sns.Topic(self, "Topic")
alarm.add_alarm_action(cw_actions.SnsAction(topic))
Parameters

topic (ITopic) –

Methods

bind(_scope, _alarm)

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

Parameters
Return type

AlarmActionConfig