Class LambdaAction
Use a Lambda action as an Alarm action.
Inheritance
System.Object
LambdaAction
Implements
Namespace: Amazon.CDK.AWS.CloudWatch.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaAction : DeputyBase, IAlarmAction
Syntax (vb)
Public Class LambdaAction
Inherits DeputyBase
Implements IAlarmAction
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Lambda;
Alarm alarm;
Function fn;
Alias alias;
Version version;
// Attach a Lambda Function when alarm triggers
alarm.AddAlarmAction(
new LambdaAction(fn));
// Attach a Lambda Function Alias when alarm triggers
alarm.AddAlarmAction(
new LambdaAction(alias));
// Attach a Lambda Function version when alarm triggers
alarm.AddAlarmAction(
new LambdaAction(version));
Synopsis
Constructors
LambdaAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LambdaAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
LambdaAction(Object) |
Methods
Bind(Construct, IAlarm) | Returns an alarm action configuration to use a Lambda action as an alarm action. |
Constructors
LambdaAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LambdaAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
LambdaAction(Object)
public LambdaAction(object lambdaFunction)
Parameters
- lambdaFunction System.Object
Methods
Bind(Construct, IAlarm)
Returns an alarm action configuration to use a Lambda action as an alarm action.
public virtual IAlarmActionConfig Bind(Construct scope, IAlarm alarm)
Parameters
- scope Constructs.Construct
- alarm IAlarm
Returns