Class ServerDeploymentGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.codedeploy.ServerDeploymentGroup
- All Implemented Interfaces:
IEnvironmentAware,IResource,IServerDeploymentGroup,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:36.835Z")
@Stability(Stable)
public class ServerDeploymentGroup
extends Resource
implements IServerDeploymentGroup
A CodeDeploy Deployment Group that deploys to EC2/on-premise instances.
Example:
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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.IServerDeploymentGroup
IServerDeploymentGroup.Jsii$Default, IServerDeploymentGroup.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedServerDeploymentGroup(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 TypeMethodDescriptionvoidAssociates an additional alarm with this Deployment Group.voidAdds an additional auto-scaling group to this Deployment Group.static IServerDeploymentGroupfromServerDeploymentGroupAttributes(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.The ARN of the Deployment Group.The name of the Deployment Group.getRole()The service Role of this Deployment Group.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
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.
-
getApplication
- Specified by:
getApplicationin interfaceIServerDeploymentGroup
-
getDeploymentConfig
- Specified by:
getDeploymentConfigin interfaceIServerDeploymentGroup
-
getDeploymentGroupArn
The ARN of the Deployment Group.- Specified by:
getDeploymentGroupArnin interfaceIServerDeploymentGroup
-
getDeploymentGroupName
The name of the Deployment Group.- Specified by:
getDeploymentGroupNamein interfaceIServerDeploymentGroup
-
getAutoScalingGroups
- Specified by:
getAutoScalingGroupsin interfaceIServerDeploymentGroup
-
getRole
The service Role of this Deployment Group.- Specified by:
getRolein interfaceIServerDeploymentGroup
-