Class EcsDeploymentGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.codedeploy.EcsDeploymentGroup
- All Implemented Interfaces:
IResource
,IEcsDeploymentGroup
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:40.480Z")
@Stability(Stable)
public class EcsDeploymentGroup
extends Resource
implements IEcsDeploymentGroup
A CodeDeploy deployment group that orchestrates ECS blue-green deployments.
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 software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.IEcsDeploymentGroup
IEcsDeploymentGroup.Jsii$Default, IEcsDeploymentGroup.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
EcsDeploymentGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EcsDeploymentGroup
(software.amazon.jsii.JsiiObjectRef objRef) EcsDeploymentGroup
(software.constructs.Construct scope, String id, EcsDeploymentGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Associates an additional alarm with this Deployment Group.static IEcsDeploymentGroup
fromEcsDeploymentGroupAttributes
(software.constructs.Construct scope, String id, EcsDeploymentGroupAttributes attrs) Reference an ECS Deployment Group defined outside the CDK app.The reference to the CodeDeploy ECS Application that this Deployment Group belongs to.The Deployment Configuration this Group uses.The ARN of the Deployment Group.The name of the Deployment Group.getRole()
The service Role of this Deployment Group.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EcsDeploymentGroup
protected EcsDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef) -
EcsDeploymentGroup
protected EcsDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EcsDeploymentGroup
@Stability(Stable) public EcsDeploymentGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EcsDeploymentGroupProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromEcsDeploymentGroupAttributes
@Stability(Stable) @NotNull public static IEcsDeploymentGroup fromEcsDeploymentGroupAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EcsDeploymentGroupAttributes attrs) Reference an ECS Deployment Group defined outside the CDK app.Account and region for the DeploymentGroup are taken from the application.
- Parameters:
scope
- the parent Construct for this new Construct. This parameter is required.id
- the logical ID of this new Construct. This parameter is required.attrs
- the properties of the referenced Deployment Group. This parameter is required.- Returns:
- a Construct representing a reference to an existing Deployment Group
-
addAlarm
Associates an additional alarm with this Deployment Group.- Parameters:
alarm
- the alarm to associate with this Deployment Group. This parameter is required.
-
getApplication
The reference to the CodeDeploy ECS Application that this Deployment Group belongs to.- Specified by:
getApplication
in interfaceIEcsDeploymentGroup
-
getDeploymentConfig
The Deployment Configuration this Group uses.- Specified by:
getDeploymentConfig
in interfaceIEcsDeploymentGroup
-
getDeploymentGroupArn
The ARN of the Deployment Group.- Specified by:
getDeploymentGroupArn
in interfaceIEcsDeploymentGroup
-
getDeploymentGroupName
The name of the Deployment Group.- Specified by:
getDeploymentGroupName
in interfaceIEcsDeploymentGroup
-
getRole
The service Role of this Deployment Group.
-