Class ServerDeploymentGroup

All Implemented Interfaces:
IConstruct, IDependable, IResource, IServerDeploymentGroup,, 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.


 LoadBalancer lb;
 ServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.Builder.create(this, "DeploymentGroup")
  • Constructor Details

    • ServerDeploymentGroup

      protected ServerDeploymentGroup( objRef)
    • ServerDeploymentGroup

      protected ServerDeploymentGroup( initializationMode)
    • ServerDeploymentGroup

      @Stability(Stable) public ServerDeploymentGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ServerDeploymentGroupProps props)
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • ServerDeploymentGroup

      @Stability(Stable) public ServerDeploymentGroup(@NotNull software.constructs.Construct scope, @NotNull String id)
      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.

      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.
      a Construct representing a reference to an existing Deployment Group
    • addAlarm

      @Stability(Stable) public void addAlarm(@NotNull IAlarm alarm)
      Associates an additional alarm with this Deployment Group.

      alarm - the alarm to associate with this Deployment Group. This parameter is required.
    • addAutoScalingGroup

      @Stability(Stable) public void addAutoScalingGroup(@NotNull AutoScalingGroup asg)
      Adds an additional auto-scaling group to this Deployment Group.

      asg - the auto-scaling group to add to this Deployment Group. This parameter is required.
    • validate

      @Stability(Stable) @NotNull protected List<String> 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.

      validate in class Construct
      An array of validation error messages, or an empty array if the construct is valid.
    • getApplication

      @Stability(Stable) @NotNull public IServerApplication getApplication()
      Specified by:
      getApplication in interface IServerDeploymentGroup
    • getDeploymentConfig

      @Stability(Stable) @NotNull public IServerDeploymentConfig getDeploymentConfig()
      Specified by:
      getDeploymentConfig in interface IServerDeploymentGroup
    • getDeploymentGroupArn

      @Stability(Stable) @NotNull public String getDeploymentGroupArn()
      Specified by:
      getDeploymentGroupArn in interface IServerDeploymentGroup
    • getDeploymentGroupName

      @Stability(Stable) @NotNull public String getDeploymentGroupName()
      Specified by:
      getDeploymentGroupName in interface IServerDeploymentGroup
    • getAutoScalingGroups

      @Stability(Stable) @Nullable public List<IAutoScalingGroup> getAutoScalingGroups()
      Specified by:
      getAutoScalingGroups in interface IServerDeploymentGroup
    • getRole

      @Stability(Stable) @Nullable public IRole getRole()
      Specified by:
      getRole in interface IServerDeploymentGroup