Enum DeploymentControllerType

java.lang.Object
java.lang.Enum<DeploymentControllerType>
software.amazon.awscdk.services.ecs.DeploymentControllerType
All Implemented Interfaces:
Serializable, Comparable<DeploymentControllerType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.427Z") @Stability(Stable) public enum DeploymentControllerType extends Enum<DeploymentControllerType>
The deployment controller type 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();
 
  • Enum Constant Details

    • ECS

      @Stability(Stable) public static final DeploymentControllerType ECS
      The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version.
    • CODE_DEPLOY

      @Stability(Stable) public static final DeploymentControllerType CODE_DEPLOY
      The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by AWS CodeDeploy.
    • EXTERNAL

      @Stability(Stable) public static final DeploymentControllerType EXTERNAL
      The external (EXTERNAL) deployment type enables you to use any third-party deployment controller.
  • Method Details

    • values

      public static DeploymentControllerType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DeploymentControllerType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null