Skip to content

LoadBalancerAttachmentProps

Properties for defining a LoadBalancerAttachment.

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

Initializer

import ros_cdk_ess
ros_cdk_ess.LoadBalancerAttachmentProps(
  scaling_group_id: typing.Union[str, IResolvable],
  force_attach: typing.Union[bool, IResolvable] = None,
  load_balancer_configs: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, LoadBalancerConfigsProperty]]] = None,
  load_balancers: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None
)

Properties

Name Type Description
scaling_group_id typing.Union[str, ros_cdk_core.IResolvable] Property scalingGroupId: The ID of the scaling group.
force_attach typing.Union[bool, 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.
load_balancer_configs typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, LoadBalancerConfigsProperty]]] Property loadBalancerConfigs: Load balancer configuration list.
load_balancers typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property loadBalancers: The ID of CLB instance N that you want to attach to the scaling group.

scaling_group_idRequired

scaling_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property scalingGroupId: The ID of the scaling group.


force_attachOptional

force_attach: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, 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.


load_balancer_configsOptional

load_balancer_configs: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, LoadBalancerConfigsProperty]]]

Property loadBalancerConfigs: Load balancer configuration list.


load_balancersOptional

load_balancers: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

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

Valid values of N: 1 to 5.