Class LambdaInvokeActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.LambdaInvokeActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaInvokeActionProps>
- Enclosing interface:
- LambdaInvokeActionProps
@Stability(Stable)
public static final class LambdaInvokeActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaInvokeActionProps>
A builder for
LambdaInvokeActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
build()
Builds the configured instance.Sets the value ofLambdaInvokeActionProps.getInputs()
Sets the value ofLambdaInvokeActionProps.getLambda()
Sets the value ofLambdaInvokeActionProps.getOutputs()
Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
userParameters
(Map<String, ? extends Object> userParameters) Sets the value ofLambdaInvokeActionProps.getUserParameters()
userParametersString
(String userParametersString) Sets the value ofLambdaInvokeActionProps.getUserParametersString()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambda
Sets the value ofLambdaInvokeActionProps.getLambda()
- Parameters:
lambda
- The lambda function to invoke. This parameter is required.- Returns:
this
-
inputs
Sets the value ofLambdaInvokeActionProps.getInputs()
- Parameters:
inputs
- The optional input Artifacts of the Action. 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.- Returns:
this
-
outputs
Sets the value ofLambdaInvokeActionProps.getOutputs()
- Parameters:
outputs
- The optional names of the output Artifacts of the Action. 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.- Returns:
this
-
userParameters
@Stability(Stable) public LambdaInvokeActionProps.Builder userParameters(Map<String, ? extends Object> userParameters) Sets the value ofLambdaInvokeActionProps.getUserParameters()
- Parameters:
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. Only one ofuserParameters
oruserParametersString
can be specified.- Returns:
this
-
userParametersString
@Stability(Stable) public LambdaInvokeActionProps.Builder userParametersString(String userParametersString) Sets the value ofLambdaInvokeActionProps.getUserParametersString()
- Parameters:
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. Only one ofuserParametersString
oruserParameters
can be specified.- Returns:
this
-
role
Sets the value ofCommonAwsActionProps.getRole()
- Parameters:
role
- The Role in which context's this Action will be executing in. The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into yourIAction.bind
method in theActionBindOptions.role
property.- Returns:
this
-
actionName
Sets the value ofCommonActionProps.getActionName()
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required. Note that Action names must be unique within a single Stage.- Returns:
this
-
runOrder
Sets the value ofCommonActionProps.getRunOrder()
- Parameters:
runOrder
- The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.- Returns:
this
-
variablesNamespace
@Stability(Stable) public LambdaInvokeActionProps.Builder variablesNamespace(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaInvokeActionProps>
- Returns:
- a new instance of
LambdaInvokeActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-