Class CfnDeploymentGroupPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.codedeploy.CfnDeploymentGroupPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:57.283Z")
@Stability(Stable)
public class CfnDeploymentGroupPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::CodeDeploy::DeploymentGroup resource creates an AWS CodeDeploy deployment group that specifies which instances your application revisions are deployed to, along with other deployment options.
For more information, see CreateDeploymentGroup in the CodeDeploy API Reference .
Amazon ECS blue/green deployments through CodeDeploy do not use the
AWS::CodeDeploy::DeploymentGroupresource. To perform Amazon ECS blue/green deployments, use theAWS::CodeDeploy::BlueGreenhook. See Perform Amazon ECS blue/green deployments through CodeDeploy using CloudFormation for more information.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.codedeploy.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnDeploymentGroupPropsMixin cfnDeploymentGroupPropsMixin = CfnDeploymentGroupPropsMixin.Builder.create(CfnDeploymentGroupMixinProps.builder()
.alarmConfiguration(AlarmConfigurationProperty.builder()
.alarms(List.of(AlarmProperty.builder()
.name("name")
.build()))
.enabled(false)
.ignorePollAlarmFailure(false)
.build())
.applicationName("applicationName")
.autoRollbackConfiguration(AutoRollbackConfigurationProperty.builder()
.enabled(false)
.events(List.of("events"))
.build())
.autoScalingGroups(List.of("autoScalingGroups"))
.blueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationProperty.builder()
.deploymentReadyOption(DeploymentReadyOptionProperty.builder()
.actionOnTimeout("actionOnTimeout")
.waitTimeInMinutes(123)
.build())
.greenFleetProvisioningOption(GreenFleetProvisioningOptionProperty.builder()
.action("action")
.build())
.terminateBlueInstancesOnDeploymentSuccess(BlueInstanceTerminationOptionProperty.builder()
.action("action")
.terminationWaitTimeInMinutes(123)
.build())
.build())
.deployment(DeploymentProperty.builder()
.description("description")
.ignoreApplicationStopFailures(false)
.revision(RevisionLocationProperty.builder()
.gitHubLocation(GitHubLocationProperty.builder()
.commitId("commitId")
.repository("repository")
.build())
.revisionType("revisionType")
.s3Location(S3LocationProperty.builder()
.bucket("bucket")
.bundleType("bundleType")
.eTag("eTag")
.key("key")
.version("version")
.build())
.build())
.build())
.deploymentConfigName("deploymentConfigName")
.deploymentGroupName("deploymentGroupName")
.deploymentStyle(DeploymentStyleProperty.builder()
.deploymentOption("deploymentOption")
.deploymentType("deploymentType")
.build())
.ec2TagFilters(List.of(EC2TagFilterProperty.builder()
.key("key")
.type("type")
.value("value")
.build()))
.ec2TagSet(EC2TagSetProperty.builder()
.ec2TagSetList(List.of(EC2TagSetListObjectProperty.builder()
.ec2TagGroup(List.of(EC2TagFilterProperty.builder()
.key("key")
.type("type")
.value("value")
.build()))
.build()))
.build())
.ecsServices(List.of(ECSServiceProperty.builder()
.clusterName("clusterName")
.serviceName("serviceName")
.build()))
.loadBalancerInfo(LoadBalancerInfoProperty.builder()
.elbInfoList(List.of(ELBInfoProperty.builder()
.name("name")
.build()))
.targetGroupInfoList(List.of(TargetGroupInfoProperty.builder()
.name("name")
.build()))
.targetGroupPairInfoList(List.of(TargetGroupPairInfoProperty.builder()
.prodTrafficRoute(TrafficRouteProperty.builder()
.listenerArns(List.of("listenerArns"))
.build())
.targetGroups(List.of(TargetGroupInfoProperty.builder()
.name("name")
.build()))
.testTrafficRoute(TrafficRouteProperty.builder()
.listenerArns(List.of("listenerArns"))
.build())
.build()))
.build())
.onPremisesInstanceTagFilters(List.of(TagFilterProperty.builder()
.key("key")
.type("type")
.value("value")
.build()))
.onPremisesTagSet(OnPremisesTagSetProperty.builder()
.onPremisesTagSetList(List.of(OnPremisesTagSetListObjectProperty.builder()
.onPremisesTagGroup(List.of(TagFilterProperty.builder()
.key("key")
.type("type")
.value("value")
.build()))
.build()))
.build())
.outdatedInstancesStrategy("outdatedInstancesStrategy")
.serviceRoleArn("serviceRoleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.terminationHookEnabled(false)
.triggerConfigurations(List.of(TriggerConfigProperty.builder()
.triggerEvents(List.of("triggerEvents"))
.triggerName("triggerName")
.triggerTargetArn("triggerTargetArn")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTheAlarmConfigurationproperty type configures CloudWatch alarms for an AWS CodeDeploy deployment group.static interfaceTheAlarmproperty type specifies a CloudWatch alarm to use for an AWS CodeDeploy deployment group.static interfaceTheAutoRollbackConfigurationproperty type configures automatic rollback for an AWS CodeDeploy deployment group when a deployment is not completed successfully.static interfaceInformation about blue/green deployment options for a deployment group.static interfaceInformation about whether instances in the original environment are terminated when a blue/green deployment is successful.static final classA fluent builder forCfnDeploymentGroupPropsMixin.static interfaceDeploymentis a property of the DeploymentGroup resource that specifies an AWS CodeDeploy application revision to be deployed to instances in the deployment group.static interfaceInformation about how traffic is rerouted to instances in a replacement environment in a blue/green deployment.static interfaceInformation about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.static interfaceInformation about an Amazon EC2 tag filter.static interfaceTheEC2TagSetproperty type specifies information about groups of tags applied to Amazon EC2 instances.static interfaceTheEC2TagSetproperty type specifies information about groups of tags applied to Amazon EC2 instances.static interfaceContains the service and cluster names used to identify an Amazon ECS deployment's target.static interfaceTheELBInfoproperty type specifies information about the Elastic Load Balancing load balancer used for an CodeDeploy deployment group.static interfaceGitHubLocationis a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in GitHub.static interfaceInformation about the instances that belong to the replacement environment in a blue/green deployment.static interfaceTheLoadBalancerInfoproperty type specifies information about the load balancer or target group used for an AWS CodeDeploy deployment group.static interfaceTheOnPremisesTagSetListObjectproperty type specifies lists of on-premises instance tag groups.static interfaceTheOnPremisesTagSetproperty type specifies a list containing other lists of on-premises instance tag groups.static interfaceRevisionLocationis a property that defines the location of the CodeDeploy application revision to deploy.static interfaceS3Locationis a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in Amazon Simple Storage Service ( Amazon S3 ).static interfaceTagFilteris a property type of the AWS::CodeDeploy::DeploymentGroup resource that specifies which on-premises instances to associate with the deployment group.static interfaceTheTargetGroupInfoproperty type specifies information about a target group in Elastic Load Balancing to use in a deployment.static interfaceInformation about two target groups and how traffic is routed during an Amazon ECS deployment.static interfaceInformation about a listener.static interfaceInformation about notification triggers for the deployment group.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::CodeDeploy::DeploymentGroup.Create a mixin to apply properties toAWS::CodeDeploy::DeploymentGroup.protectedCfnDeploymentGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeploymentGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDeploymentGroupMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnDeploymentGroupPropsMixin
protected CfnDeploymentGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDeploymentGroupPropsMixin
protected CfnDeploymentGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDeploymentGroupPropsMixin
@Stability(Stable) public CfnDeploymentGroupPropsMixin(@NotNull CfnDeploymentGroupMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CodeDeploy::DeploymentGroup.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnDeploymentGroupPropsMixin
Create a mixin to apply properties toAWS::CodeDeploy::DeploymentGroup.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-