@Stability(value=Experimental) public static final class ServerDeploymentGroupProps.Builder extends Object implements software.amazon.jsii.Builder<ServerDeploymentGroupProps>
ServerDeploymentGroupProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder alarms(List<? extends IAlarm> alarms)
ServerDeploymentGroupProps.getAlarms()
alarms
- 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 {@link #addAlarm} method.
this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder application(IServerApplication application)
ServerDeploymentGroupProps.getApplication()
application
- The CodeDeploy EC2/on-premise Application this Deployment Group belongs to.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder autoRollback(AutoRollbackConfig autoRollback)
ServerDeploymentGroupProps.getAutoRollback()
autoRollback
- The auto-rollback configuration for this Deployment Group.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder autoScalingGroups(List<? extends IAutoScalingGroup> autoScalingGroups)
ServerDeploymentGroupProps.getAutoScalingGroups()
autoScalingGroups
- The auto-scaling groups belonging to this Deployment Group.
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.
this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder deploymentConfig(IServerDeploymentConfig deploymentConfig)
ServerDeploymentGroupProps.getDeploymentConfig()
deploymentConfig
- The EC2/on-premise Deployment Configuration to use for this Deployment Group.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder deploymentGroupName(String deploymentGroupName)
ServerDeploymentGroupProps.getDeploymentGroupName()
deploymentGroupName
- The physical, human-readable name of the CodeDeploy Deployment Group.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder ec2InstanceTags(InstanceTagSet ec2InstanceTags)
ServerDeploymentGroupProps.getEc2InstanceTags()
ec2InstanceTags
- All EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder ignorePollAlarmsFailure(Boolean ignorePollAlarmsFailure)
ServerDeploymentGroupProps.getIgnorePollAlarmsFailure()
ignorePollAlarmsFailure
- Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder installAgent(Boolean installAgent)
ServerDeploymentGroupProps.getInstallAgent()
installAgent
- 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.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder loadBalancer(LoadBalancer loadBalancer)
ServerDeploymentGroupProps.getLoadBalancer()
loadBalancer
- 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.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder onPremiseInstanceTags(InstanceTagSet onPremiseInstanceTags)
ServerDeploymentGroupProps.getOnPremiseInstanceTags()
onPremiseInstanceTags
- All on-premise instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.this
@Stability(value=Experimental) public ServerDeploymentGroupProps.Builder role(IRole role)
ServerDeploymentGroupProps.getRole()
role
- The service Role of this Deployment Group.this
@Stability(value=Experimental) public ServerDeploymentGroupProps build()
build
in interface software.amazon.jsii.Builder<ServerDeploymentGroupProps>
ServerDeploymentGroupProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.