Interface ILambdaInvokeActionProps
Construction properties of the LambdaInvokeAction Lambda invoke CodePipeline Action
.
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILambdaInvokeActionProps : ICommonAwsActionProps, ICommonActionProps
Syntax (vb)
Public Interface ILambdaInvokeActionProps
Inherits ICommonAwsActionProps, ICommonActionProps
Remarks
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
Properties
Inputs | The optional input Artifacts of the Action. |
Lambda | The lambda function to invoke. |
Outputs | The optional names of the output Artifacts of the Action. |
UserParameters | A set of key-value pairs that will be accessible to the invoked Lambda inside the event that the Pipeline will call it with. |
UserParametersString | The string representation of the user parameters that will be accessible to the invoked Lambda inside the event that the Pipeline will call it with. |
Properties
Inputs
The optional input Artifacts of the Action.
virtual Artifact_[] Inputs { get; }
Property Value
Remarks
A Lambda Action can have up to 5 inputs.
The inputs will appear in the event passed to the Lambda,
under the 'CodePipeline.job'.data.inputArtifacts
path.
Default: the Action will not have any inputs
Lambda
Outputs
The optional names of the output Artifacts of the Action.
virtual Artifact_[] Outputs { get; }
Property Value
Remarks
A Lambda Action can have up to 5 outputs.
The outputs will appear in the event passed to the Lambda,
under the 'CodePipeline.job'.data.outputArtifacts
path.
It is the responsibility of the Lambda to upload ZIP files with the Artifact contents to the provided locations.
Default: the Action will not have any outputs
UserParameters
A set of key-value pairs that will be accessible to the invoked Lambda inside the event that the Pipeline will call it with.
virtual IDictionary<string, object> UserParameters { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Remarks
Only one of userParameters
or userParametersString
can be specified.
Default: - no user parameters will be passed
UserParametersString
The string representation of the user parameters that will be accessible to the invoked Lambda inside the event that the Pipeline will call it with.
virtual string UserParametersString { get; }
Property Value
System.String
Remarks
Only one of userParametersString
or userParameters
can be specified.
Default: - no user parameters will be passed