Class SsmAction
Use an SSM OpsItem action as an Alarm action.
Inheritance
System.Object
SsmAction
Implements
Namespace: Amazon.CDK.AWS.CloudWatch.Actions
Assembly: Amazon.CDK.AWS.CloudWatch.Actions.dll
Syntax (csharp)
public class SsmAction : DeputyBase, IAlarmAction
Syntax (vb)
Public Class SsmAction
Inherits DeputyBase
Implements IAlarmAction
Remarks
ExampleMetadata: infused
Examples
Alarm alarm;
// Create an OpsItem with specific severity and category when alarm triggers
alarm.AddAlarmAction(
new SsmAction(OpsItemSeverity.CRITICAL, OpsItemCategory.PERFORMANCE));
Synopsis
Constructors
SsmAction(OpsItemSeverity, Nullable<OpsItemCategory>) | |
SsmAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SsmAction(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 SSM OpsItem action as an alarm action. |
Constructors
SsmAction(OpsItemSeverity, Nullable<OpsItemCategory>)
public SsmAction(OpsItemSeverity severity, Nullable<OpsItemCategory> category = null)
Parameters
- severity OpsItemSeverity
- category System.Nullable<OpsItemCategory>
SsmAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SsmAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SsmAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SsmAction(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 SSM OpsItem action as an alarm action.
public virtual IAlarmActionConfig Bind(Construct scope, IAlarm alarm)
Parameters
Returns