public static final class PipelineInvokeActionProps.Builder extends Object
PipelineInvokeActionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PipelineInvokeActionProps |
build()
Builds the configured instance.
|
PipelineInvokeActionProps.Builder |
withAddPutJobResultPolicy(Boolean value)
Sets the value of AddPutJobResultPolicy
|
PipelineInvokeActionProps.Builder |
withLambda(FunctionRef value)
Sets the value of Lambda
|
PipelineInvokeActionProps.Builder |
withRunOrder(Number value)
Sets the value of RunOrder
|
PipelineInvokeActionProps.Builder |
withStage(software.amazon.awscdk.services.codepipeline.api.IStage value)
Sets the value of Stage
|
PipelineInvokeActionProps.Builder |
withUserParameters(Object value)
Sets the value of UserParameters
|
public PipelineInvokeActionProps.Builder withLambda(FunctionRef value)
value - The lambda function to invoke.thispublic PipelineInvokeActionProps.Builder withAddPutJobResultPolicy(@Nullable Boolean value)
value - Adds the "codepipeline:PutJobSuccessResult" and
"codepipeline:PutJobFailureResult" for '*' resource to the Lambda
execution role policy.
NOTE: the reason we can't add the specific pipeline ARN as a resource is
to avoid a cyclic dependency between the pipeline and the Lambda function
(the pipeline references) the Lambda and the Lambda needs permissions on
the pipeline.thispublic PipelineInvokeActionProps.Builder withUserParameters(@Nullable Object value)
value - String to be used in the event data parameter passed to the Lambda
function
See an example JSON event in the CodePipeline documentation.
https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html#actions-invoke-lambda-function-json-event-examplethispublic PipelineInvokeActionProps.Builder withRunOrder(@Nullable Number value)
value - The runOrder property for this Action.
RunOrder determines the relative order in which multiple Actions in the same Stage execute.thispublic PipelineInvokeActionProps.Builder withStage(software.amazon.awscdk.services.codepipeline.api.IStage value)
value - The Pipeline Stage to add this Action to.thispublic PipelineInvokeActionProps build()
PipelineInvokeActionPropsNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.