Class LambdaInvokeAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codepipeline.Action
software.amazon.awscdk.services.codepipeline.actions.Action
software.amazon.awscdk.services.codepipeline.actions.LambdaInvokeAction
All Implemented Interfaces:
IAction, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:23:58.996Z") @Stability(Stable) public class LambdaInvokeAction extends Action
CodePipeline invoke Action that is provided by an AWS Lambda function.

Example:

 Function fn;
 Pipeline pipeline = new Pipeline(this, "MyPipeline");
 LambdaInvokeAction lambdaAction = LambdaInvokeAction.Builder.create()
         .actionName("Lambda")
         .lambda(fn)
         .build();
 pipeline.addStage(StageOptions.builder()
         .stageName("Lambda")
         .actions(List.of(lambdaAction))
         .build());
 

See Also:
  • Constructor Details

    • LambdaInvokeAction

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

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

      @Stability(Stable) public LambdaInvokeAction(@NotNull LambdaInvokeActionProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • bound

      @Stability(Stable) @NotNull protected ActionConfig bound(@NotNull software.constructs.Construct scope, @NotNull IStage _stage, @NotNull ActionBindOptions options)
      This is a renamed version of the IAction.bind method.

      Specified by:
      bound in class Action
      Parameters:
      scope - This parameter is required.
      _stage - This parameter is required.
      options - This parameter is required.
    • variable

      @Stability(Stable) @NotNull public String variable(@NotNull String variableName)
      Reference a CodePipeline variable defined by the Lambda function this action points to.

      Variables in Lambda invoke actions are defined by calling the PutJobSuccessResult CodePipeline API call with the 'outputVariables' property filled.

      Parameters:
      variableName - the name of the variable to reference. This parameter is required.
      See Also: