ServerDeploymentGroupProps Struct
Construction properties for ServerDeploymentGroup.
Example
declare const alb: elbv2.ApplicationLoadBalancer;
const listener = alb.addListener('Listener', { port: 80 });
const targetGroup = listener.addTargets('Fleet', { port: 80 });
const deploymentGroup = new codedeploy.ServerDeploymentGroup(this, 'DeploymentGroup', {
loadBalancer: codedeploy.LoadBalancer.application(targetGroup),
});
Properties
alarmsIAlarmRef[]alarmstyping.List[IAlarmRef]alarmsList<IAlarmRef>AlarmsIAlarmRef[]Alarms*[]IAlarmRef= []#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 #addAlarm method.
applicationIApplicationRefapplicationIApplicationRefapplicationIApplicationRefApplicationIApplicationRefApplicationIApplicationRef= A new Application will be create…#default
Default: A new Application will be created.
autoRollbackAutoRollbackConfigauto_rollbackAutoRollbackConfigautoRollbackAutoRollbackConfigAutoRollbackAutoRollbackConfigAutoRollbackAutoRollbackConfig= default AutoRollbackConfig.#autoScalingGroupsIAutoScalingGroup[]auto_scaling_groupstyping.List[IAutoScalingGroup]autoScalingGroupsList<IAutoScalingGroup>AutoScalingGroupsIAutoScalingGroup[]AutoScalingGroups*[]IAutoScalingGroup= []#Auto-scaling groups can also be added after the Deployment Group is created using the #addAutoScalingGroup method.
[disable-awslint:ref-via-interface] is needed because we update userdata for ASGs to install the codedeploy agent.
deploymentConfigIDeploymentConfigRefdeployment_configIDeploymentConfigRefdeploymentConfigIDeploymentConfigRefDeploymentConfigIDeploymentConfigRefDeploymentConfigIDeploymentConfigRef= ServerDeploymentConfig#OneAtATim…#default
Default: ServerDeploymentConfig#OneAtATime
deploymentGroupNamestringdeployment_group_namestrdeploymentGroupNameStringDeploymentGroupNamestringDeploymentGroupName*string= An auto-generated name will be u…#default
Default: An auto-generated name will be used.
ec2InstanceTagsInstanceTagSetec2_instance_tagsInstanceTagSetec2InstanceTagsInstanceTagSetEc2InstanceTagsInstanceTagSetEc2InstanceTagsInstanceTagSet= No additional EC2 instances will…#default
Default: No additional EC2 instances will be added to the Deployment Group.
ignoreAlarmConfigurationbooleanignore_alarm_configurationboolignoreAlarmConfigurationBooleanIgnoreAlarmConfigurationboolIgnoreAlarmConfiguration*bool= false#ignorePollAlarmsFailurebooleanignore_poll_alarms_failureboolignorePollAlarmsFailureBooleanIgnorePollAlarmsFailureboolIgnorePollAlarmsFailure*bool= false#loadBalancerLoadBalancerload_balancerLoadBalancerloadBalancerLoadBalancerLoadBalancerLoadBalancerLoadBalancerLoadBalancer= Deployment Group will not have a…deprecated#Can be created from either a classic Elastic Load Balancer, or an Application Load Balancer / Network Load Balancer Target Group.
default
Default: Deployment Group will not have a load balancer defined.
loadBalancersLoadBalancer[]load_balancerstyping.List[LoadBalancer]loadBalancersList<LoadBalancer>LoadBalancersLoadBalancer[]LoadBalancers*[]LoadBalancer= Deployment Group will not have l…#Specify either multiple Classic Load Balancers, or Application Load Balancers / Network Load Balancers Target Groups.
default
Default: Deployment Group will not have load balancers defined.
onPremiseInstanceTagsInstanceTagSeton_premise_instance_tagsInstanceTagSetonPremiseInstanceTagsInstanceTagSetOnPremiseInstanceTagsInstanceTagSetOnPremiseInstanceTagsInstanceTagSet= No additional on-premise instanc…#default
Default: No additional on-premise instances will be added to the Deployment Group.
terminationHookbooleantermination_hookboolterminationHookBooleanTerminationHookboolTerminationHook*bool= false#