Interface ServerDeploymentGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServerDeploymentGroupProps.Jsii$Proxy
ServerDeploymentGroup
.
Example:
ApplicationLoadBalancer alb; ApplicationListener listener = alb.addListener("Listener", BaseApplicationListenerProps.builder().port(80).build()); ApplicationTargetGroup targetGroup = listener.addTargets("Fleet", AddApplicationTargetsProps.builder().port(80).build()); ServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.Builder.create(this, "DeploymentGroup") .loadBalancer(LoadBalancer.application(targetGroup)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forServerDeploymentGroupProps
static final class
An implementation forServerDeploymentGroupProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The CloudWatch alarms associated with this Deployment Group.default IServerApplication
The CodeDeploy EC2/on-premise Application this Deployment Group belongs to.default AutoRollbackConfig
The auto-rollback configuration for this Deployment Group.default List<IAutoScalingGroup>
The auto-scaling groups belonging to this Deployment Group.default IServerDeploymentConfig
The EC2/on-premise Deployment Configuration to use for this Deployment Group.default String
The physical, human-readable name of the CodeDeploy Deployment Group.default InstanceTagSet
All EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.default Boolean
Whether to skip the step of checking CloudWatch alarms during the deployment process.default Boolean
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.default Boolean
If you've provided any auto-scaling groups with the#autoScalingGroups
property, you can set this property to add User Data that installs the CodeDeploy agent on the instances.default LoadBalancer
Deprecated.default List<LoadBalancer>
CodeDeploy supports the deployment to multiple load balancers.default InstanceTagSet
All on-premise instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.default IRole
getRole()
The service Role of this Deployment Group.default Boolean
Indicates whether the deployment group was configured to have CodeDeploy install a termination hook into an Auto Scaling group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlarms
The CloudWatch alarms associated with this Deployment Group.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.Default: []
- See Also:
-
getApplication
The CodeDeploy EC2/on-premise Application this Deployment Group belongs to.Default: - A new Application will be created.
-
getAutoRollback
The auto-rollback configuration for this Deployment Group.Default: - default AutoRollbackConfig.
-
getAutoScalingGroups
The auto-scaling groups belonging to this Deployment Group.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.
Default: []
-
getDeploymentConfig
The EC2/on-premise Deployment Configuration to use for this Deployment Group.Default: ServerDeploymentConfig#OneAtATime
-
getDeploymentGroupName
The physical, human-readable name of the CodeDeploy Deployment Group.Default: - An auto-generated name will be used.
-
getEc2InstanceTags
All EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.Default: - No additional EC2 instances will be added to the Deployment Group.
-
getIgnoreAlarmConfiguration
Whether to skip the step of checking CloudWatch alarms during the deployment process.Default: - false
-
getIgnorePollAlarmsFailure
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.Default: false
-
getInstallAgent
If you've provided any auto-scaling groups with the#autoScalingGroups
property, you can set this property to add User Data that installs the CodeDeploy agent on the instances.Default: true
- See Also:
-
getLoadBalancer
Deprecated.- Use
loadBalancers
instead.
(deprecated) The load balancer to place in front of this Deployment Group.Can be created from either a classic Elastic Load Balancer, or an Application Load Balancer / Network Load Balancer Target Group.
Default: - Deployment Group will not have a load balancer defined.
- Use
-
getLoadBalancers
CodeDeploy supports the deployment to multiple load balancers.Specify either multiple Classic Load Balancers, or Application Load Balancers / Network Load Balancers Target Groups.
Default: - Deployment Group will not have load balancers defined.
-
getOnPremiseInstanceTags
All on-premise instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.Default: - No additional on-premise instances will be added to the Deployment Group.
-
getRole
The service Role of this Deployment Group.Default: - A new Role will be created.
-
getTerminationHook
Indicates whether the deployment group was configured to have CodeDeploy install a termination hook into an Auto Scaling group.Default: - false
- See Also:
-
builder
- Returns:
- a
ServerDeploymentGroupProps.Builder
ofServerDeploymentGroupProps
-
loadBalancers
instead.