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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by AWS CodeDeploy.The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version.The external (EXTERNAL) deployment type enables you to use any third-party deployment controller. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentControllerType
Returns the enum constant of this type with the specified name.static DeploymentControllerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ECS
The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version. -
CODE_DEPLOY
The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by AWS CodeDeploy. -
EXTERNAL
The external (EXTERNAL) deployment type enables you to use any third-party deployment controller.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-