Interface EcsDeploymentGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcsDeploymentGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.658Z")
@Stability(Stable)
public interface EcsDeploymentGroupProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for
EcsDeploymentGroup.
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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEcsDeploymentGroupPropsstatic final classAn implementation forEcsDeploymentGroupProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The CloudWatch alarms associated with this Deployment Group.default IEcsApplicationThe reference to the CodeDeploy ECS Application that this Deployment Group belongs to.default AutoRollbackConfigThe auto-rollback configuration for this Deployment Group.The configuration options for blue-green ECS deployments.default IEcsDeploymentConfigThe Deployment Configuration this Deployment Group uses.default StringThe physical, human-readable name of the CodeDeploy Deployment Group.default BooleanWhether to skip the step of checking CloudWatch alarms during the deployment process.default BooleanWhether to continue a deployment even if fetching the alarm status from CloudWatch failed.default IRolegetRole()The service Role of this Deployment Group.The ECS service to deploy with this Deployment Group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBlueGreenDeploymentConfig
The configuration options for blue-green ECS deployments. -
getService
The ECS service to deploy with this Deployment Group. -
getAlarms
The CloudWatch alarms associated with this Deployment Group.CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger.
Alarms can also be added after the Deployment Group is created using the
#addAlarmmethod.Default: []
- See Also:
-
getApplication
The reference to the CodeDeploy ECS Application that this Deployment Group belongs to.Default: One will be created for you.
-
getAutoRollback
The auto-rollback configuration for this Deployment Group.Default: - default AutoRollbackConfig.
-
getDeploymentConfig
The Deployment Configuration this Deployment Group uses.Default: EcsDeploymentConfig.ALL_AT_ONCE
-
getDeploymentGroupName
The physical, human-readable name of the CodeDeploy Deployment Group.Default: An auto-generated name will be used.
-
getIgnoreAlarmConfiguration
Whether to skip the step of checking CloudWatch alarms during the deployment process.Default: - false
-
getIgnorePollAlarmsFailure
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.Default: false
-
getRole
The service Role of this Deployment Group.Default: - A new Role will be created.
-
builder
- Returns:
- a
EcsDeploymentGroupProps.BuilderofEcsDeploymentGroupProps
-