AddressPoolProps
Properties for defining a AddressPool.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dns-addresspool
Initializer
import ros_cdk_dns
ros_cdk_dns.AddressPoolProps(
addr: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, AddrProperty]]],
instance_id: typing.Union[str, IResolvable],
lba_strategy: typing.Union[str, IResolvable],
name: typing.Union[str, IResolvable],
type: typing.Union[str, IResolvable],
evaluation_count: typing.Union[typing.Union[int, float], IResolvable] = None,
interval: typing.Union[typing.Union[int, float], IResolvable] = None,
isp_city_node: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, IspCityNodeProperty]]] = None,
monitor_extend_info: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
monitor_status: typing.Union[str, IResolvable] = None,
protocol_type: typing.Union[str, IResolvable] = None,
timeout: typing.Union[typing.Union[int, float], IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
addr | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, AddrProperty]]] | Property addr: The list of addresses in the address pool. |
instance_id | typing.Union[str, ros_cdk_core.IResolvable] | Property instanceId: The ID of the GTM instance. |
lba_strategy | typing.Union[str, ros_cdk_core.IResolvable] | Property lbaStrategy: The load balancing policy. |
name | typing.Union[str, ros_cdk_core.IResolvable] | Property name: The name of the address pool. |
type | typing.Union[str, ros_cdk_core.IResolvable] | Property type: The type of the address pool. |
evaluation_count | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property evaluationCount: The number of times that the system waits for a response from each address before it marks the address as unhealthy. |
interval | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property interval: The interval between two consecutive health checks, in seconds. |
isp_city_node | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, IspCityNodeProperty]]] | Property ispCityNode: The list of ISP city nodes. |
monitor_extend_info | typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] | Property monitorExtendInfo: The extended information. |
monitor_status | typing.Union[str, ros_cdk_core.IResolvable] | Property monitorStatus: The status of the health check feature. |
protocol_type | typing.Union[str, ros_cdk_core.IResolvable] | Property protocolType: The protocol type. |
timeout | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property timeout: The timeout period of a health check, in seconds. |
addrRequired
addr: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, AddrProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, AddrProperty]]]
Property addr: The list of addresses in the address pool.
instance_idRequired
instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceId: The ID of the GTM instance.
lba_strategyRequired
lba_strategy: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property lbaStrategy: The load balancing policy.
Valid values:
- ALL_RR: returns all addresses.
- RATIO: returns addresses by weight.
nameRequired
name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property name: The name of the address pool.
typeRequired
type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property type: The type of the address pool.
Valid values:
- IPV4: IPv4 address
- IPV6: IPv6 address
- DOMAIN: domain name
evaluation_countOptional
evaluation_count: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property evaluationCount: The number of times that the system waits for a response from each address before it marks the address as unhealthy.
intervalOptional
interval: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property interval: The interval between two consecutive health checks, in seconds.
isp_city_nodeOptional
isp_city_node: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, IspCityNodeProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, IspCityNodeProperty]]]
Property ispCityNode: The list of ISP city nodes.
monitor_extend_infoOptional
monitor_extend_info: typing.Union[IResolvable, typing.Mapping[typing.Any]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]
Property monitorExtendInfo: The extended information.
This parameter is a JSON string. The required parameters vary based on the health check protocol:
- HTTP and HTTPS:
- port: The health check port.
- host: The host settings.
- path: The URL path.
- code: The return code. A response with a status code greater than this value is considered abnormal. Valid values: 400 and 500.
- failureRate: The failure rate.
- sni: Specifies whether to enable Server Name Indication (SNI). This parameter is available only for the HTTPS protocol.
- true: Enable SNI.
- Other values: Disable SNI.
- nodeType: The type of the health check node when the address pool type is DOMAIN. Valid values:
- IPV4
- IPV6
- PING:
- failureRate: The failure rate.
- packetNum: The number of ping packets.
- packetLossRate: The packet loss rate.
- nodeType: The type of the health check node when the address pool type is DOMAIN. Valid values:
- IPV4
- IPV6
- TCP:
- port: The health check port.
- failureRate: The failure rate.
- nodeType: The type of the health check node when the address pool type is DOMAIN. Valid values:
- IPV4
- IPV6
monitor_statusOptional
monitor_status: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property monitorStatus: The status of the health check feature.
Default value: CLOSE. If you set this parameter to OPEN, the health check configuration is verified. Otherwise, the configuration is ignored.
- OPEN: enabled
- CLOSE: disabled
protocol_typeOptional
protocol_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property protocolType: The protocol type.
timeoutOptional
timeout: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property timeout: The timeout period of a health check, in seconds.