@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-21T20:56:32.678Z") @Stability(value=Stable) public interface ServerDeploymentGroupProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServerDeploymentGroupProps.Builder
A builder for
ServerDeploymentGroupProps |
static class |
ServerDeploymentGroupProps.Jsii$Proxy
An implementation for
ServerDeploymentGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static ServerDeploymentGroupProps.Builder |
builder() |
default List<IAlarm> |
getAlarms()
The CloudWatch alarms associated with this Deployment Group.
|
default IServerApplication |
getApplication()
The CodeDeploy EC2/on-premise Application this Deployment Group belongs to.
|
default AutoRollbackConfig |
getAutoRollback()
The auto-rollback configuration for this Deployment Group.
|
default List<IAutoScalingGroup> |
getAutoScalingGroups()
The auto-scaling groups belonging to this Deployment Group.
|
default IServerDeploymentConfig |
getDeploymentConfig()
The EC2/on-premise Deployment Configuration to use for this Deployment Group.
|
default String |
getDeploymentGroupName()
The physical, human-readable name of the CodeDeploy Deployment Group.
|
default InstanceTagSet |
getEc2InstanceTags()
All EC2 instances matching the given set of tags when a deployment occurs will be added to this Deployment Group.
|
default Boolean |
getIgnorePollAlarmsFailure()
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.
|
default Boolean |
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 LoadBalancer |
getLoadBalancer()
The load balancer to place in front of this Deployment Group.
|
default InstanceTagSet |
getOnPremiseInstanceTags()
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.
|
@Stability(value=Stable) @Nullable default List<IAlarm> getAlarms()
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: []
@Stability(value=Stable) @Nullable default IServerApplication getApplication()
Default: - A new Application will be created.
@Stability(value=Stable) @Nullable default AutoRollbackConfig getAutoRollback()
Default: - default AutoRollbackConfig.
@Stability(value=Stable) @Nullable default List<IAutoScalingGroup> getAutoScalingGroups()
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: []
@Stability(value=Stable) @Nullable default IServerDeploymentConfig getDeploymentConfig()
Default: ServerDeploymentConfig#OneAtATime
@Stability(value=Stable) @Nullable default String getDeploymentGroupName()
Default: - An auto-generated name will be used.
@Stability(value=Stable) @Nullable default InstanceTagSet getEc2InstanceTags()
Default: - No additional EC2 instances will be added to the Deployment Group.
@Stability(value=Stable) @Nullable default Boolean getIgnorePollAlarmsFailure()
Default: false
@Stability(value=Stable) @Nullable default Boolean getInstallAgent()
#autoScalingGroups property, you can set this property to add User Data that installs the CodeDeploy agent on the instances.
Default: true
@Stability(value=Stable) @Nullable default LoadBalancer getLoadBalancer()
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.
@Stability(value=Stable) @Nullable default InstanceTagSet getOnPremiseInstanceTags()
Default: - No additional on-premise instances will be added to the Deployment Group.
@Stability(value=Stable) @Nullable default IRole getRole()
Default: - A new Role will be created.
@Stability(value=Stable) static ServerDeploymentGroupProps.Builder builder()
ServerDeploymentGroupProps.Builder of ServerDeploymentGroupPropsCopyright © 2022. All rights reserved.