Class DeploymentLifecycleLambdaTarget.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.DeploymentLifecycleLambdaTarget.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentLifecycleLambdaTarget>
- Enclosing class:
DeploymentLifecycleLambdaTarget
@Stability(Stable)
public static final class DeploymentLifecycleLambdaTarget.Builder
extends Object
implements software.amazon.jsii.Builder<DeploymentLifecycleLambdaTarget>
A fluent builder for
DeploymentLifecycleLambdaTarget
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
lifecycleStages
(List<? extends DeploymentLifecycleStage> lifecycleStages) The lifecycle stages when this hook should be executed.The IAM role that grants permissions to invoke the lambda target.
-
Method Details
-
create
@Stability(Stable) public static DeploymentLifecycleLambdaTarget.Builder create(IFunction handler, String id) - Parameters:
handler
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
DeploymentLifecycleLambdaTarget.Builder
.
-
lifecycleStages
@Stability(Stable) public DeploymentLifecycleLambdaTarget.Builder lifecycleStages(List<? extends DeploymentLifecycleStage> lifecycleStages) The lifecycle stages when this hook should be executed.- Parameters:
lifecycleStages
- The lifecycle stages when this hook should be executed. This parameter is required.- Returns:
this
-
role
The IAM role that grants permissions to invoke the lambda target.Default: - A unique role will be generated for this lambda function.
- Parameters:
role
- The IAM role that grants permissions to invoke the lambda target. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DeploymentLifecycleLambdaTarget>
- Returns:
- a newly built instance of
DeploymentLifecycleLambdaTarget
.
-