Class ServerDeploymentGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.codedeploy.ServerDeploymentGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IServerDeploymentGroup
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.392Z")
@Stability(Stable)
public class ServerDeploymentGroup
extends Resource
implements IServerDeploymentGroup
A CodeDeploy Deployment Group that deploys to EC2/on-premise instances.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.IServerDeploymentGroup
IServerDeploymentGroup.Jsii$Default, IServerDeploymentGroup.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServerDeploymentGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ServerDeploymentGroup
(software.amazon.jsii.JsiiObjectRef objRef) ServerDeploymentGroup
(software.constructs.Construct scope, String id) ServerDeploymentGroup
(software.constructs.Construct scope, String id, ServerDeploymentGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Associates an additional alarm with this Deployment Group.void
Adds an additional auto-scaling group to this Deployment Group.static IServerDeploymentGroup
fromServerDeploymentGroupAttributes
(software.constructs.Construct scope, String id, ServerDeploymentGroupAttributes attrs) Import an EC2/on-premise Deployment Group defined either outside the CDK app, or in a different region.getRole()
validate()
Validate the current construct.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ServerDeploymentGroup
protected ServerDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef) -
ServerDeploymentGroup
protected ServerDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ServerDeploymentGroup
@Stability(Stable) public ServerDeploymentGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ServerDeploymentGroupProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
ServerDeploymentGroup
@Stability(Stable) public ServerDeploymentGroup(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
fromServerDeploymentGroupAttributes
@Stability(Stable) @NotNull public static IServerDeploymentGroup fromServerDeploymentGroupAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ServerDeploymentGroupAttributes attrs) Import an EC2/on-premise Deployment Group defined either outside the CDK app, or in a different region.- Parameters:
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.- Returns:
- a Construct representing a reference to an existing Deployment Group
-
addAlarm
Associates an additional alarm with this Deployment Group.- Parameters:
alarm
- the alarm to associate with this Deployment Group. This parameter is required.
-
addAutoScalingGroup
Adds an additional auto-scaling group to this Deployment Group.- Parameters:
asg
- the auto-scaling group to add to this Deployment Group. This parameter is required.
-
validate
Validate the current construct.This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
-
getApplication
- Specified by:
getApplication
in interfaceIServerDeploymentGroup
-
getDeploymentConfig
- Specified by:
getDeploymentConfig
in interfaceIServerDeploymentGroup
-
getDeploymentGroupArn
- Specified by:
getDeploymentGroupArn
in interfaceIServerDeploymentGroup
-
getDeploymentGroupName
- Specified by:
getDeploymentGroupName
in interfaceIServerDeploymentGroup
-
getAutoScalingGroups
- Specified by:
getAutoScalingGroups
in interfaceIServerDeploymentGroup
-
getRole
- Specified by:
getRole
in interfaceIServerDeploymentGroup
-