Interface ServerDeploymentGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServerDeploymentGroupProps.Jsii$Proxy
ServerDeploymentGroup.
Example:
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forServerDeploymentGroupPropsstatic final classAn implementation forServerDeploymentGroupProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The CloudWatch alarms associated with this Deployment Group.default IServerApplicationThe CodeDeploy EC2/on-premise Application this Deployment Group belongs to.default AutoRollbackConfigThe auto-rollback configuration for this Deployment Group.default List<IAutoScalingGroup>The auto-scaling groups belonging to this Deployment Group.default IServerDeploymentConfigThe EC2/on-premise Deployment Configuration to use for this Deployment Group.default StringThe physical, human-readable name of the CodeDeploy Deployment Group.default InstanceTagSetAll EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.default BooleanWhether to continue a deployment even if fetching the alarm status from CloudWatch failed.default BooleanIf you've provided any auto-scaling groups with the#autoScalingGroupsproperty, you can set this property to add User Data that installs the CodeDeploy agent on the instances.default LoadBalancerThe load balancer to place in front of this Deployment Group.default InstanceTagSetAll on-premise instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.default IRolegetRole()The service Role of this Deployment 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
#addAlarmmethod.Default: []
-
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
#addAutoScalingGroupmethod. [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.
-
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#autoScalingGroupsproperty, you can set this property to add User Data that installs the CodeDeploy agent on the instances.Default: true
-
getLoadBalancer
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.
-
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.
-
builder
- Returns:
- a
ServerDeploymentGroupProps.BuilderofServerDeploymentGroupProps
-