Skip to content

AddressPool

This class encapsulates and extends the ROS resource type ALIYUN::DNS::AddressPool.

Initializers

import ros_cdk_dns
ros_cdk_dns.AddressPool(
  scope: Construct,
  id: str,
  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,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No 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.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

addrRequired

  • 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

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

Property instanceId: The ID of the GTM instance.


lba_strategyRequired

  • 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

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

Property name: The name of the address pool.


typeRequired

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

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

Property protocolType: The protocol type.


timeoutOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property timeout: The timeout period of a health check, in seconds.


enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
fetch_condition No description.
fetch_dependency No description.
fetch_resource_desc No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

fetch_condition

def fetch_condition() -> RosCondition

fetch_dependency

def fetch_dependency() -> typing.List[str]

fetch_resource_desc

def fetch_resource_desc() -> str

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

Name Description
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_dns
ros_cdk_dns.AddressPool.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_addr_pool_id typing.Union[str, ros_cdk_core.IResolvable] Attribute AddrPoolId: The ID of the address pool.
props AddressPoolProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


envRequired

env: IResourceEnvironment
  • Type: ros_cdk_core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_addr_pool_idRequired

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

Attribute AddrPoolId: The ID of the address pool.


propsRequired

props: AddressPoolProps