public static final class ServerDeploymentGroupProps.Builder extends Object
ServerDeploymentGroupProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ServerDeploymentGroupProps |
build()
Builds the configured instance.
|
ServerDeploymentGroupProps.Builder |
withAlarms(List<software.amazon.awscdk.services.cloudwatch.Alarm> value)
Sets the value of Alarms
|
ServerDeploymentGroupProps.Builder |
withApplication(IServerApplication value)
Sets the value of Application
|
ServerDeploymentGroupProps.Builder |
withAutoRollback(AutoRollbackConfig value)
Sets the value of AutoRollback
|
ServerDeploymentGroupProps.Builder |
withAutoScalingGroups(List<software.amazon.awscdk.services.autoscaling.AutoScalingGroup> value)
Sets the value of AutoScalingGroups
|
ServerDeploymentGroupProps.Builder |
withDeploymentConfig(IServerDeploymentConfig value)
Sets the value of DeploymentConfig
|
ServerDeploymentGroupProps.Builder |
withDeploymentGroupName(String value)
Sets the value of DeploymentGroupName
|
ServerDeploymentGroupProps.Builder |
withEc2InstanceTags(InstanceTagSet value)
Sets the value of Ec2InstanceTags
|
ServerDeploymentGroupProps.Builder |
withIgnorePollAlarmsFailure(Boolean value)
Sets the value of IgnorePollAlarmsFailure
|
ServerDeploymentGroupProps.Builder |
withInstallAgent(Boolean value)
Sets the value of InstallAgent
|
ServerDeploymentGroupProps.Builder |
withLoadBalancer(software.amazon.awscdk.services.codedeploy.api.ILoadBalancer value)
Sets the value of LoadBalancer
|
ServerDeploymentGroupProps.Builder |
withOnPremiseInstanceTags(InstanceTagSet value)
Sets the value of OnPremiseInstanceTags
|
ServerDeploymentGroupProps.Builder |
withRole(software.amazon.awscdk.services.iam.Role value)
Sets the value of Role
|
public ServerDeploymentGroupProps.Builder withAlarms(@Nullable List<software.amazon.awscdk.services.cloudwatch.Alarm> value)
value - 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.thispublic ServerDeploymentGroupProps.Builder withApplication(@Nullable IServerApplication value)
value - The CodeDeploy EC2/on-premise Application this Deployment Group belongs to.
If you don't provide one, a new Application will be created.thispublic ServerDeploymentGroupProps.Builder withAutoRollback(@Nullable AutoRollbackConfig value)
value - The auto-rollback configuration for this Deployment Group.thispublic ServerDeploymentGroupProps.Builder withAutoScalingGroups(@Nullable List<software.amazon.awscdk.services.autoscaling.AutoScalingGroup> value)
value - 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.thispublic ServerDeploymentGroupProps.Builder withDeploymentConfig(@Nullable IServerDeploymentConfig value)
value - The EC2/on-premise Deployment Configuration to use for this Deployment Group.thispublic ServerDeploymentGroupProps.Builder withDeploymentGroupName(@Nullable String value)
value - The physical, human-readable name of the CodeDeploy Deployment Group.thispublic ServerDeploymentGroupProps.Builder withEc2InstanceTags(@Nullable InstanceTagSet value)
value - All EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.thispublic ServerDeploymentGroupProps.Builder withIgnorePollAlarmsFailure(@Nullable Boolean value)
value - Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.thispublic ServerDeploymentGroupProps.Builder withInstallAgent(@Nullable Boolean value)
value - 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.thispublic ServerDeploymentGroupProps.Builder withLoadBalancer(@Nullable software.amazon.awscdk.services.codedeploy.api.ILoadBalancer value)
value - The load balancer to place in front of this Deployment Group.
Can be either a classic Elastic Load Balancer,
or an Application Load Balancer / Network Load Balancer Target Group.thispublic ServerDeploymentGroupProps.Builder withOnPremiseInstanceTags(@Nullable InstanceTagSet value)
value - All on-premise instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.thispublic ServerDeploymentGroupProps.Builder withRole(@Nullable software.amazon.awscdk.services.iam.Role value)
value - The service Role of this Deployment Group.
If you don't provide one, a new Role will be created.thispublic ServerDeploymentGroupProps build()
ServerDeploymentGroupPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.