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.AWS.CodePipeline.Actions.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 sourceOutput = new Artifact();
var buildOutput = new Artifact();
var lambdaAction = new LambdaInvokeAction(new LambdaInvokeActionProps {
ActionName = "Lambda",
Inputs = new [] { sourceOutput, buildOutput },
Outputs = new [] {
new Artifact("Out1"),
new Artifact("Out2") },
Lambda = fn
});
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 {@link IAction.bind} method. |
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 {@link IAction.bind} method.
protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope 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