Ec2DeploymentOptionsProperty Struct
Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups during deployments to the deployment group.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const ec2DeploymentOptionsProperty: codedeploy.CfnDeploymentGroup.Ec2DeploymentOptionsProperty = {
autoScalingGroupProcessesToSuspend: ['autoScalingGroupProcessesToSuspend'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codedeploy as codedeploy
ec2_deployment_options_property = codedeploy.CfnDeploymentGroup.Ec2DeploymentOptionsProperty(
auto_scaling_group_processes_to_suspend=["autoScalingGroupProcessesToSuspend"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codedeploy.*;
Ec2DeploymentOptionsProperty ec2DeploymentOptionsProperty = Ec2DeploymentOptionsProperty.builder()
.autoScalingGroupProcessesToSuspend(List.of("autoScalingGroupProcessesToSuspend"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var ec2DeploymentOptionsProperty = new Ec2DeploymentOptionsProperty {
AutoScalingGroupProcessesToSuspend = new [] { "autoScalingGroupProcessesToSuspend" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
ec2DeploymentOptionsProperty := &Ec2DeploymentOptionsProperty{
AutoScalingGroupProcessesToSuspend: []*string{
jsii.String("autoScalingGroupProcessesToSuspend"),
},
}
Properties
autoScalingGroupProcessesToSuspendoptionalstring[]auto_scaling_group_processes_to_suspendoptionaltyping.List[str]autoScalingGroupProcessesToSuspendoptionalList<String>AutoScalingGroupProcessesToSuspendoptionalstring[]AutoScalingGroupProcessesToSuspendoptional*[]*string#The Amazon EC2 Auto Scaling processes to suspend during an in-place deployment.
notes
CodeDeploy suspends these processes before it deploys to instances in an Auto Scaling group, and resumes them when the deployment succeeds, fails, or is stopped. Valid values are Terminate, AZRebalance, InstanceRefresh, and ScheduledActions. Process names are case sensitive. To stop suspending processes, remove the property.