@Stability(value=Experimental) public static final class ServerDeploymentGroup.Builder extends Object implements software.amazon.jsii.Builder<ServerDeploymentGroup>
ServerDeploymentGroup.| Modifier and Type | Method and Description |
|---|---|
ServerDeploymentGroup.Builder |
alarms(List<? extends IAlarm> alarms)
(experimental) The CloudWatch alarms associated with this Deployment Group.
|
ServerDeploymentGroup.Builder |
application(IServerApplication application)
(experimental) The CodeDeploy EC2/on-premise Application this Deployment Group belongs to.
|
ServerDeploymentGroup.Builder |
autoRollback(AutoRollbackConfig autoRollback)
(experimental) The auto-rollback configuration for this Deployment Group.
|
ServerDeploymentGroup.Builder |
autoScalingGroups(List<? extends IAutoScalingGroup> autoScalingGroups)
(experimental) The auto-scaling groups belonging to this Deployment Group.
|
ServerDeploymentGroup |
build() |
static ServerDeploymentGroup.Builder |
create(software.constructs.Construct scope,
String id) |
ServerDeploymentGroup.Builder |
deploymentConfig(IServerDeploymentConfig deploymentConfig)
(experimental) The EC2/on-premise Deployment Configuration to use for this Deployment Group.
|
ServerDeploymentGroup.Builder |
deploymentGroupName(String deploymentGroupName)
(experimental) The physical, human-readable name of the CodeDeploy Deployment Group.
|
ServerDeploymentGroup.Builder |
ec2InstanceTags(InstanceTagSet ec2InstanceTags)
(experimental) All EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.
|
ServerDeploymentGroup.Builder |
ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure)
(experimental) Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.
|
ServerDeploymentGroup.Builder |
installAgent(Boolean installAgent)
(experimental) If you've provided any auto-scaling groups with the
autoScalingGroups(java.util.List<? extends software.amazon.awscdk.services.autoscaling.IAutoScalingGroup>) property, you can set this property to add User Data that installs the CodeDeploy agent on the instances. |
ServerDeploymentGroup.Builder |
loadBalancer(LoadBalancer loadBalancer)
(experimental) The load balancer to place in front of this Deployment Group.
|
ServerDeploymentGroup.Builder |
onPremiseInstanceTags(InstanceTagSet onPremiseInstanceTags)
(experimental) All on-premise instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.
|
ServerDeploymentGroup.Builder |
role(IRole role)
(experimental) The service Role of this Deployment Group.
|
@Stability(value=Experimental) public static ServerDeploymentGroup.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ServerDeploymentGroup.Builder.@Stability(value=Experimental) public ServerDeploymentGroup.Builder alarms(List<? extends IAlarm> alarms)
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 {@link #addAlarm} method.
Default: []
alarms - The CloudWatch alarms associated with this Deployment Group. This parameter is required.thishttps://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-create-alarms.html@Stability(value=Experimental) public ServerDeploymentGroup.Builder application(IServerApplication application)
Default: - A new Application will be created.
application - The CodeDeploy EC2/on-premise Application this Deployment Group belongs to. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder autoRollback(AutoRollbackConfig autoRollback)
Default: - default AutoRollbackConfig.
autoRollback - The auto-rollback configuration for this Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder autoScalingGroups(List<? extends IAutoScalingGroup> autoScalingGroups)
Auto-scaling groups can also be added after the Deployment Group is created using the {@link #addAutoScalingGroup} method.
[disable-awslint:ref-via-interface] is needed because we update userdata for ASGs to install the codedeploy agent.
Default: []
autoScalingGroups - The auto-scaling groups belonging to this Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder deploymentConfig(IServerDeploymentConfig deploymentConfig)
Default: ServerDeploymentConfig#OneAtATime
deploymentConfig - The EC2/on-premise Deployment Configuration to use for this Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder deploymentGroupName(String deploymentGroupName)
Default: - An auto-generated name will be used.
deploymentGroupName - The physical, human-readable name of the CodeDeploy Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder ec2InstanceTags(InstanceTagSet ec2InstanceTags)
Default: - No additional EC2 instances will be added to the Deployment Group.
ec2InstanceTags - All EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure)
Default: false
ignorePollAlarmsFailure - Whether to continue a deployment even if fetching the alarm status from CloudWatch failed. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder installAgent(Boolean installAgent)
autoScalingGroups(java.util.List<? extends software.amazon.awscdk.services.autoscaling.IAutoScalingGroup>) property, you can set this property to add User Data that installs the CodeDeploy agent on the instances.
Default: true
installAgent - If you've provided any auto-scaling groups with the autoScalingGroups(java.util.List<? extends software.amazon.awscdk.services.autoscaling.IAutoScalingGroup>) property, you can set this property to add User Data that installs the CodeDeploy agent on the instances. This parameter is required.thishttps://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install.html@Stability(value=Experimental) public ServerDeploymentGroup.Builder loadBalancer(LoadBalancer loadBalancer)
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.
loadBalancer - The load balancer to place in front of this Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder onPremiseInstanceTags(InstanceTagSet onPremiseInstanceTags)
Default: - No additional on-premise instances will be added to the Deployment Group.
onPremiseInstanceTags - All on-premise instances matching the given set of tags when a deployment occurs will be added to this Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup.Builder role(IRole role)
Default: - A new Role will be created.
role - The service Role of this Deployment Group. This parameter is required.this@Stability(value=Experimental) public ServerDeploymentGroup build()
build in interface software.amazon.jsii.Builder<ServerDeploymentGroup>Copyright © 2021. All rights reserved.