@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:59.378Z")
public interface AutoRollbackConfig
Example:
import software.amazon.awscdk.services.autoscaling.*; import software.amazon.awscdk.services.cloudwatch.*; ServerApplication application; AutoScalingGroup asg; Alarm alarm; ServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.Builder.create(this, "CodeDeployDeploymentGroup") .application(application) .deploymentGroupName("MyDeploymentGroup") .autoScalingGroups(List.of(asg)) // adds User Data that installs the CodeDeploy agent on your auto-scaling groups hosts // default: true .installAgent(true) // adds EC2 instances matching tags .ec2InstanceTags(new InstanceTagSet(Map.of( // any instance with tags satisfying // key1=v1 or key1=v2 or key2 (any value) or value v3 (any key) // will match this group "key1", List.of("v1", "v2"), "key2", List.of(), "", List.of("v3")))) // adds on-premise instances matching tags .onPremiseInstanceTags(new InstanceTagSet(Map.of( "key1", List.of("v1", "v2")), Map.of( "key2", List.of("v3")))) // CloudWatch alarms .alarms(List.of(alarm)) // whether to ignore failure to fetch the status of alarms from CloudWatch // default: false .ignorePollAlarmsFailure(false) // auto-rollback configuration .autoRollback(AutoRollbackConfig.builder() .failedDeployment(true) // default: true .stoppedDeployment(true) // default: false .deploymentInAlarm(true) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
AutoRollbackConfig.Builder
A builder for
AutoRollbackConfig |
static class |
AutoRollbackConfig.Jsii$Proxy
An implementation for
AutoRollbackConfig |
Modifier and Type | Method and Description |
---|---|
static AutoRollbackConfig.Builder |
builder() |
default java.lang.Boolean |
getDeploymentInAlarm()
Whether to automatically roll back a deployment during which one of the configured CloudWatch alarms for this Deployment Group went off.
|
default java.lang.Boolean |
getFailedDeployment()
Whether to automatically roll back a deployment that fails.
|
default java.lang.Boolean |
getStoppedDeployment()
Whether to automatically roll back a deployment that was manually stopped.
|
default java.lang.Boolean getDeploymentInAlarm()
Default: true if you've provided any Alarms with the `alarms` property, false otherwise
default java.lang.Boolean getFailedDeployment()
Default: true
default java.lang.Boolean getStoppedDeployment()
Default: false
static AutoRollbackConfig.Builder builder()
AutoRollbackConfig.Builder
of AutoRollbackConfig