Skip to content
v2.275.0

SsmIncidentAction Class ​

Use an SSM Incident Response Plan as an Alarm action.

Example ​

ts
declare const alarm: cloudwatch.Alarm;
// Create an Incident Manager incident based on a specific response plan
alarm.addAlarmAction(
  new actions.SsmIncidentAction('ResponsePlanName')
);
python
# alarm: cloudwatch.Alarm

# Create an Incident Manager incident based on a specific response plan
alarm.add_alarm_action(
    actions.SsmIncidentAction("ResponsePlanName"))
java
Alarm alarm;

// Create an Incident Manager incident based on a specific response plan
alarm.addAlarmAction(
new SsmIncidentAction("ResponsePlanName"));
csharp
// Install: dotnet add package Amazon.CDK.Lib
Alarm alarm;

// Create an Incident Manager incident based on a specific response plan
alarm.AddAlarmAction(
new SsmIncidentAction("ResponsePlanName"));
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var alarm Alarm

// Create an Incident Manager incident based on a specific response plan
alarm.AddAlarmAction(
actions.NewSsmIncidentAction(jsii.String("ResponsePlanName")))

Initializer ​

ts
new SsmIncidentAction(responsePlanName: string)
python
SsmIncidentAction(response_plan_name: str)
java
new SsmIncidentAction(String responsePlanName)
csharp
new SsmIncidentAction(string responsePlanName)
go
NewSsmIncidentAction(ResponsePlanName *string)

Methods ​

bind(_scope: Construct, _alarm: IAlarm): AlarmActionConfigdef bind(self, _scope: Construct, _alarm: IAlarm) -> AlarmActionConfigpublic AlarmActionConfig bind(Construct _scope, IAlarm _alarm)public AlarmActionConfig Bind(Construct _scope, IAlarm _alarm)func Bind(_scope Construct, _alarm IAlarm) AlarmActionConfig#
Returns an alarm action configuration to use an SSM Incident as an alarm action based on an Incident Manager Response Plan.