Skip to content

LoadBalancerAttachmentProps

Properties for defining a LoadBalancerAttachment.

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

Initializer

import com.aliyun.ros.cdk.ess.LoadBalancerAttachmentProps;
LoadBalancerAttachmentProps.builder()
    .scalingGroupId(java.lang.String)
    .scalingGroupId(IResolvable)
//  .forceAttach(java.lang.Boolean)
//  .forceAttach(IResolvable)
//  .loadBalancerConfigs(IResolvable)
//  .loadBalancerConfigs(java.util.List<IResolvable)
//  .loadBalancerConfigs(LoadBalancerConfigsProperty>)
//  .loadBalancers(IResolvable)
//  .loadBalancers(java.util.List<java.lang.String)
//  .loadBalancers(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.
forceAttach java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property forceAttach: Specifies whether to add all instances in the current scaling group to the backend server groups of the attached CLB instance.
loadBalancerConfigs com.aliyun.ros.cdk.core.IResolvable OR java.util.ListLoadBalancerConfigsProperty> Property loadBalancerConfigs: Load balancer configuration list.
loadBalancers com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property loadBalancers: The ID of CLB instance N that you want to attach to the scaling group.

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.


forceAttachOptional

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

Property forceAttach: Specifies whether to add all instances in the current scaling group to the backend server groups of the attached CLB instance.

Valid values: true false Default value: false.


loadBalancerConfigsOptional

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

Property loadBalancerConfigs: Load balancer configuration list.


loadBalancersOptional

public java.lang.Object getLoadBalancers();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property loadBalancers: The ID of CLB instance N that you want to attach to the scaling group.

Valid values of N: 1 to 5.