Class LambdaInvokeAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaInvokeAction>
- Enclosing class:
- LambdaInvokeAction
LambdaInvokeAction
.-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) The physical, human-readable name of the Action.build()
static LambdaInvokeAction.Builder
create()
The optional input Artifacts of the Action.The lambda function to invoke.The optional names of the output Artifacts of the Action.The Role in which context's this Action will be executing in.The runOrder property for this Action.userParameters
(Map<String, ? extends Object> 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
(String 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.variablesNamespace
(String variablesNamespace) The name of the namespace to use for variables emitted by this action.
-
Method Details
-
create
- Returns:
- a new instance of
LambdaInvokeAction.Builder
.
-
actionName
The physical, human-readable name of the Action.Note that Action names must be unique within a single Stage.
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required.- Returns:
this
-
runOrder
The runOrder property for this Action.RunOrder determines the relative order in which multiple Actions in the same Stage execute.
Default: 1
- Parameters:
runOrder
- The runOrder property for this Action. This parameter is required.- Returns:
this
- See Also:
-
variablesNamespace
The name of the namespace to use for variables emitted by this action.Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action. This parameter is required.- Returns:
this
-
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 your
IAction.bind
method in theActionBindOptions.role
property.Default: a new Role will be generated
- Parameters:
role
- The Role in which context's this Action will be executing in. This parameter is required.- Returns:
this
-
lambda
The lambda function to invoke.- Parameters:
lambda
- The lambda function to invoke. This parameter is required.- Returns:
this
-
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.Default: the Action will not have any inputs
- Parameters:
inputs
- The optional input Artifacts of the Action. This parameter is required.- Returns:
this
- See Also:
-
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.Default: the Action will not have any outputs
- Parameters:
outputs
- The optional names of the output Artifacts of the Action. This parameter is required.- Returns:
this
-
userParameters
@Stability(Stable) public LambdaInvokeAction.Builder userParameters(Map<String, ? extends Object> 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 of
userParameters
oruserParametersString
can be specified.Default: - no user parameters will be passed
- 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. This parameter is required.- Returns:
this
- See Also:
-
userParametersString
@Stability(Stable) public LambdaInvokeAction.Builder userParametersString(String 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 of
userParametersString
oruserParameters
can be specified.Default: - no user parameters will be passed
- 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. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaInvokeAction>
- Returns:
- a newly built instance of
LambdaInvokeAction
.
-