Class EcsDeployment.Builder
- java.lang.Object
-
- io.github.cdklabs.cdk.ecs.codedeploy.EcsDeployment.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsDeployment>
- Enclosing class:
- EcsDeployment
@Stability(Experimental) public static final class EcsDeployment.Builder extends Object implements software.amazon.jsii.Builder<EcsDeployment>
(experimental) A fluent builder forEcsDeployment.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EcsDeployment.BuilderautoRollback(software.amazon.awscdk.services.codedeploy.AutoRollbackConfig autoRollback)(experimental) The configuration for rollback in the event that a deployment fails.EcsDeploymentbuild()static EcsDeployment.Buildercreate()EcsDeployment.BuilderdeploymentGroup(software.amazon.awscdk.services.codedeploy.IEcsDeploymentGroup deploymentGroup)(experimental) The deployment group to target for this deployment.EcsDeployment.Builderdescription(String description)(experimental) The description for the deployment.EcsDeployment.Builderhooks(AppSpecHooks hooks)(experimental) Optional lifecycle hooks.EcsDeployment.BuildertargetService(TargetService targetService)(experimental) The ECS service to target for the deployment.EcsDeployment.Buildertimeout(software.amazon.awscdk.Duration timeout)(experimental) The timeout for the deployment.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static EcsDeployment.Builder create()
- Returns:
- a new instance of
EcsDeployment.Builder.
-
deploymentGroup
@Stability(Experimental) public EcsDeployment.Builder deploymentGroup(software.amazon.awscdk.services.codedeploy.IEcsDeploymentGroup deploymentGroup)
(experimental) The deployment group to target for this deployment.- Parameters:
deploymentGroup- The deployment group to target for this deployment. This parameter is required.- Returns:
this
-
targetService
@Stability(Experimental) public EcsDeployment.Builder targetService(TargetService targetService)
(experimental) The ECS service to target for the deployment.see: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-resources.html#reference-appspec-file-structure-resources-ecs
- Parameters:
targetService- The ECS service to target for the deployment. This parameter is required.- Returns:
this
-
autoRollback
@Stability(Experimental) public EcsDeployment.Builder autoRollback(software.amazon.awscdk.services.codedeploy.AutoRollbackConfig autoRollback)
(experimental) The configuration for rollback in the event that a deployment fails.Default: : no automatic rollback triggered
- Parameters:
autoRollback- The configuration for rollback in the event that a deployment fails. This parameter is required.- Returns:
this
-
description
@Stability(Experimental) public EcsDeployment.Builder description(String description)
(experimental) The description for the deployment.Default: no description
- Parameters:
description- The description for the deployment. This parameter is required.- Returns:
this
-
hooks
@Stability(Experimental) public EcsDeployment.Builder hooks(AppSpecHooks hooks)
(experimental) Optional lifecycle hooks.Default: - no lifecycle hooks
- Parameters:
hooks- Optional lifecycle hooks. This parameter is required.- Returns:
this
-
timeout
@Stability(Experimental) public EcsDeployment.Builder timeout(software.amazon.awscdk.Duration timeout)
(experimental) The timeout for the deployment.If the timeout is reached, it will trigger a rollback of the stack.
Default: 30 minutes
- Parameters:
timeout- The timeout for the deployment. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public EcsDeployment build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcsDeployment>- Returns:
- a newly built instance of
EcsDeployment.
-
-