Interface DeploymentController
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DeploymentController.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:18.595Z")
@Stability(Stable)
public interface DeploymentController
extends software.amazon.jsii.JsiiSerializable
The deployment controller to use for the service.
Example:
EcsApplication myApplication; Cluster cluster; FargateTaskDefinition taskDefinition; ITargetGroup blueTargetGroup; ITargetGroup greenTargetGroup; IApplicationListener listener; FargateService service = FargateService.Builder.create(this, "Service") .cluster(cluster) .taskDefinition(taskDefinition) .deploymentController(DeploymentController.builder() .type(DeploymentControllerType.CODE_DEPLOY) .build()) .build(); EcsDeploymentGroup.Builder.create(this, "BlueGreenDG") .service(service) .blueGreenDeploymentConfig(EcsBlueGreenDeploymentConfig.builder() .blueTargetGroup(blueTargetGroup) .greenTargetGroup(greenTargetGroup) .listener(listener) .build()) .deploymentConfig(EcsDeploymentConfig.CANARY_10PERCENT_5MINUTES) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDeploymentController
static final class
An implementation forDeploymentController
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentController.Builder
builder()
default DeploymentControllerType
getType()
The deployment controller type to use.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The deployment controller type to use.Default: DeploymentControllerType.ECS
-
builder
- Returns:
- a
DeploymentController.Builder
ofDeploymentController
-