Class LambdaInvokeAction
CodePipeline invoke Action that is provided by an AWS Lambda function.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaInvokeAction : Action, IAction
Syntax (vb)
Public Class LambdaInvokeAction
Inherits Action
Implements IAction
Remarks
See: https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html
ExampleMetadata: infused
Examples
Function fn;
var pipeline = new Pipeline(this, "MyPipeline");
var lambdaAction = new LambdaInvokeAction(new LambdaInvokeActionProps {
ActionName = "Lambda",
Lambda = fn
});
pipeline.AddStage(new StageOptions {
StageName = "Lambda",
Actions = new [] { lambdaAction }
});
Synopsis
Constructors
LambdaInvokeAction(ILambdaInvokeActionProps) | |
LambdaInvokeAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LambdaInvokeAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bound(Construct, IStage, IActionBindOptions) | This is a renamed version of the |
Variable(String) | Reference a CodePipeline variable defined by the Lambda function this action points to. |
Constructors
LambdaInvokeAction(ILambdaInvokeActionProps)
LambdaInvokeAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaInvokeAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LambdaInvokeAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaInvokeAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bound(Construct, IStage, IActionBindOptions)
This is a renamed version of the IAction.bind
method.
protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope Constructs.Construct
- stage IStage
- options IActionBindOptions
Returns
Overrides
Variable(String)
Reference a CodePipeline variable defined by the Lambda function this action points to.
public virtual string Variable(string variableName)
Parameters
- variableName System.String
the name of the variable to reference.
Returns
System.String
Remarks
Variables in Lambda invoke actions are defined by calling the PutJobSuccessResult CodePipeline API call with the 'outputVariables' property filled.
See: https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutJobSuccessResult.html