Skip to content

ServerGroupAttachmentProps

Properties for defining a ServerGroupAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ess-servergroupattachment

Initializer

import com.aliyun.ros.cdk.ess.ServerGroupAttachmentProps;
ServerGroupAttachmentProps.builder()
    .scalingGroupId(java.lang.String)
    .scalingGroupId(IResolvable)
    .serverGroups(IResolvable)
    .serverGroups(java.util.List<IResolvable)
    .serverGroups(ServerGroupsProperty>)
//  .forceAttach(java.lang.Boolean)
//  .forceAttach(IResolvable)
    .build();

Properties

Name Type Description
scalingGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scalingGroupId: The ID of the scaling group.
serverGroups com.aliyun.ros.cdk.core.IResolvable OR java.util.ListServerGroupsProperty> Property serverGroups: A collection of information about server groups.
forceAttach java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property forceAttach: Specifies whether to add the Elastic Compute Service (ECS) instances in the scaling group to the backend server group of the newly attached SLB instance.

scalingGroupIdRequired

public java.lang.Object getScalingGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property scalingGroupId: The ID of the scaling group.


serverGroupsRequired

public java.lang.Object getServerGroups();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListServerGroupsProperty>

Property serverGroups: A collection of information about server groups.


forceAttachOptional

public java.lang.Object getForceAttach();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property forceAttach: Specifies whether to add the Elastic Compute Service (ECS) instances in the scaling group to the backend server group of the newly attached SLB instance.

Valid values: true false Default value: false.