class SsmAction
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.Actions.SsmAction |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatchactions#SsmAction |
Java | software.amazon.awscdk.services.cloudwatch.actions.SsmAction |
Python | aws_cdk.aws_cloudwatch_actions.SsmAction |
TypeScript (source) | aws-cdk-lib » aws_cloudwatch_actions » SsmAction |
Implements
IAlarm
Use an SSM OpsItem action as an Alarm action.
Example
declare const alarm: cloudwatch.Alarm;
// Create an OpsItem with specific severity and category when alarm triggers
alarm.addAlarmAction(
new actions.SsmAction(
actions.OpsItemSeverity.CRITICAL,
actions.OpsItemCategory.PERFORMANCE // category is optional
)
);
Initializer
new SsmAction(severity: OpsItemSeverity, category?: OpsItemCategory)
Parameters
- severity
Ops
Item Severity - category
Ops
Item Category
Methods
Name | Description |
---|---|
bind(_scope, _alarm) | Returns an alarm action configuration to use an SSM OpsItem action as an alarm action. |
bind(_scope, _alarm)
public bind(_scope: Construct, _alarm: IAlarm): AlarmActionConfig
Parameters
Returns
Returns an alarm action configuration to use an SSM OpsItem action as an alarm action.