@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:09.765Z") public class ServerDeploymentGroup extends Resource implements IServerDeploymentGroup
Example:
import software.amazon.awscdk.services.elasticloadbalancing.*; LoadBalancer lb; lb.addListener(LoadBalancerListener.builder() .externalPort(80) .build()); ServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.Builder.create(this, "DeploymentGroup") .loadBalancer(LoadBalancer.classic(lb)) .build();
Modifier and Type | Class and Description |
---|---|
static class |
ServerDeploymentGroup.Builder
A fluent builder for
ServerDeploymentGroup . |
IServerDeploymentGroup.Jsii$Default, IServerDeploymentGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ServerDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ServerDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef) |
|
ServerDeploymentGroup(software.constructs.Construct scope,
java.lang.String id) |
|
ServerDeploymentGroup(software.constructs.Construct scope,
java.lang.String id,
ServerDeploymentGroupProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addAlarm(IAlarm alarm)
Associates an additional alarm with this Deployment Group.
|
void |
addAutoScalingGroup(AutoScalingGroup asg)
Adds an additional auto-scaling group to this Deployment Group.
|
static IServerDeploymentGroup |
fromServerDeploymentGroupAttributes(software.constructs.Construct scope,
java.lang.String id,
ServerDeploymentGroupAttributes attrs)
Import an EC2/on-premise Deployment Group defined either outside the CDK app, or in a different region.
|
IServerApplication |
getApplication() |
java.util.List<IAutoScalingGroup> |
getAutoScalingGroups() |
IServerDeploymentConfig |
getDeploymentConfig() |
java.lang.String |
getDeploymentGroupArn() |
java.lang.String |
getDeploymentGroupName() |
IRole |
getRole() |
protected java.util.List<java.lang.String> |
validate()
Validate the current construct.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ServerDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ServerDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ServerDeploymentGroup(software.constructs.Construct scope, java.lang.String id, ServerDeploymentGroupProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public ServerDeploymentGroup(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public static IServerDeploymentGroup fromServerDeploymentGroupAttributes(software.constructs.Construct scope, java.lang.String id, ServerDeploymentGroupAttributes attrs)
scope
- the parent Construct for this new Construct. This parameter is required.id
- the logical ID of this new Construct. This parameter is required.attrs
- the properties of the referenced Deployment Group. This parameter is required.public void addAlarm(IAlarm alarm)
alarm
- the alarm to associate with this Deployment Group. This parameter is required.public void addAutoScalingGroup(AutoScalingGroup asg)
asg
- the auto-scaling group to add to this Deployment Group. This parameter is required.protected java.util.List<java.lang.String> validate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
public IServerApplication getApplication()
getApplication
in interface IServerDeploymentGroup
public IServerDeploymentConfig getDeploymentConfig()
getDeploymentConfig
in interface IServerDeploymentGroup
public java.lang.String getDeploymentGroupArn()
getDeploymentGroupArn
in interface IServerDeploymentGroup
public java.lang.String getDeploymentGroupName()
getDeploymentGroupName
in interface IServerDeploymentGroup
public java.util.List<IAutoScalingGroup> getAutoScalingGroups()
getAutoScalingGroups
in interface IServerDeploymentGroup
public IRole getRole()
getRole
in interface IServerDeploymentGroup