Class DeploymentLifecycleHookTargetConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.DeploymentLifecycleHookTargetConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentLifecycleHookTargetConfig>
- Enclosing interface:
DeploymentLifecycleHookTargetConfig
@Stability(Stable)
public static final class DeploymentLifecycleHookTargetConfig.Builder
extends Object
implements software.amazon.jsii.Builder<DeploymentLifecycleHookTargetConfig>
A builder for
DeploymentLifecycleHookTargetConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.lifecycleStages(List<? extends DeploymentLifecycleStage> lifecycleStages) Sets the value ofDeploymentLifecycleHookTargetConfig.getLifecycleStages()Sets the value ofDeploymentLifecycleHookTargetConfig.getRole()Sets the value ofDeploymentLifecycleHookTargetConfig.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lifecycleStages
@Stability(Stable) public DeploymentLifecycleHookTargetConfig.Builder lifecycleStages(List<? extends DeploymentLifecycleStage> lifecycleStages) Sets the value ofDeploymentLifecycleHookTargetConfig.getLifecycleStages()- Parameters:
lifecycleStages- The lifecycle stages when this hook should be executed. This parameter is required.- Returns:
this
-
targetArn
Sets the value ofDeploymentLifecycleHookTargetConfig.getTargetArn()- Parameters:
targetArn- The ARN of the target resource. This parameter is required.- Returns:
this
-
role
Sets the value ofDeploymentLifecycleHookTargetConfig.getRole()- Parameters:
role- The IAM role that grants permissions to invoke the target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeploymentLifecycleHookTargetConfig>- Returns:
- a new instance of
DeploymentLifecycleHookTargetConfig - Throws:
NullPointerException- if any required attribute was not provided
-