java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.actions.LambdaAction
All Implemented Interfaces:
IAlarmAction, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:58.931Z") @Stability(Stable) public class LambdaAction extends software.amazon.jsii.JsiiObject implements IAlarmAction
Use a Lambda action as an Alarm action.

Example:

 import software.amazon.awscdk.services.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));
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.IAlarmAction

    IAlarmAction.Jsii$Default, IAlarmAction.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    LambdaAction(Object lambdaFunction)
     
    protected
    LambdaAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    LambdaAction(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct scope, IAlarm alarm)
    Returns an alarm action configuration to use a Lambda action as an alarm action.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • LambdaAction

      protected LambdaAction(software.amazon.jsii.JsiiObjectRef objRef)
    • LambdaAction

      protected LambdaAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LambdaAction

      @Stability(Stable) public LambdaAction(@NotNull Object lambdaFunction)
      Parameters:
      lambdaFunction - This parameter is required.
  • Method Details