Class DeploymentControllerType
The deployment controller type to use for the service.
Inheritance
System.Object
DeploymentControllerType
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class DeploymentControllerType : Enum
Syntax (vb)
Public NotInheritable Class DeploymentControllerType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
EcsApplication myApplication;
Cluster cluster;
FargateTaskDefinition taskDefinition;
ITargetGroup blueTargetGroup;
ITargetGroup greenTargetGroup;
IApplicationListener listener;
var service = new FargateService(this, "Service", new FargateServiceProps {
Cluster = cluster,
TaskDefinition = taskDefinition,
DeploymentController = new DeploymentController {
Type = DeploymentControllerType.CODE_DEPLOY
}
});
new EcsDeploymentGroup(this, "BlueGreenDG", new EcsDeploymentGroupProps {
Service = service,
BlueGreenDeploymentConfig = new EcsBlueGreenDeploymentConfig {
BlueTargetGroup = blueTargetGroup,
GreenTargetGroup = greenTargetGroup,
Listener = listener
},
DeploymentConfig = EcsDeploymentConfig.CANARY_10PERCENT_5MINUTES
});
Synopsis
Fields
CODE_DEPLOY | The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by AWS CodeDeploy. |
ECS | The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version. |
EXTERNAL | The external (EXTERNAL) deployment type enables you to use any third-party deployment controller. |
value__ |
Fields
CODE_DEPLOY
The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by AWS CodeDeploy.
public const DeploymentControllerType CODE_DEPLOY
Field Value
Type | Description |
---|---|
DeploymentControllerType |
ECS
The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version.
public const DeploymentControllerType ECS
Field Value
Type | Description |
---|---|
DeploymentControllerType |
EXTERNAL
The external (EXTERNAL) deployment type enables you to use any third-party deployment controller.
public const DeploymentControllerType EXTERNAL
Field Value
Type | Description |
---|---|
DeploymentControllerType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |