LoadBalancerProps
Properties for defining a LoadBalancer
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-nlb-loadbalancer
Initializer
import ros_cdk_nlb
ros_cdk_nlb.LoadBalancerProps(
address_type: typing.Union[str, IResolvable],
vpc_id: typing.Union[str, IResolvable],
zone_mappings: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ZoneMappingsProperty]]],
address_ip_version: typing.Union[str, IResolvable] = None,
bandwidth_package_id: typing.Union[str, IResolvable] = None,
cross_zone_enabled: typing.Union[bool, IResolvable] = None,
deletion_protection_config: typing.Union[IResolvable, DeletionProtectionConfigProperty] = None,
load_balancer_billing_config: typing.Union[IResolvable, LoadBalancerBillingConfigProperty] = None,
load_balancer_name: typing.Union[str, IResolvable] = None,
load_balancer_type: typing.Union[str, IResolvable] = None,
modification_protection_config: typing.Union[IResolvable, ModificationProtectionConfigProperty] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
traffic_affinity_enabled: typing.Union[bool, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
address_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property addressType: The type of IP address that the NLB instance uses to provide services. |
vpc_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vpcId: The ID of the virtual private cloud (VPC) where the NLB instance is deployed. |
zone_mappings |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ZoneMappingsProperty]]] |
Property zoneMappings: The zones and the vSwitches in the zones. |
address_ip_version |
typing.Union[str, ros_cdk_core.IResolvable] |
Property addressIpVersion: The version of IP address that the NLB instance uses to provide services. |
bandwidth_package_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property bandwidthPackageId: Attach common bandwidth package to load balancer. |
cross_zone_enabled |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property crossZoneEnabled: Whether enable cross zone. |
deletion_protection_config |
typing.Union[ros_cdk_core.IResolvable, DeletionProtectionConfigProperty] |
Property deletionProtectionConfig: The configuration of the deletion protection feature. |
load_balancer_billing_config |
typing.Union[ros_cdk_core.IResolvable, LoadBalancerBillingConfigProperty] |
Property loadBalancerBillingConfig: The configuration of the billing method. |
load_balancer_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property loadBalancerName: The name of the NLB instance. |
load_balancer_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property loadBalancerType: The type of the NLB instance. |
modification_protection_config |
typing.Union[ros_cdk_core.IResolvable, ModificationProtectionConfigProperty] |
Property modificationProtectionConfig: The configuration of the configuration read-only mode. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: The ID of the resource group. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to instance. |
traffic_affinity_enabled |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property trafficAffinityEnabled: Whether enable traffic affinity. |
address_type
Required
address_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property addressType: The type of IP address that the NLB instance uses to provide services.
Valid values: Internet: The NLB instance uses a public IP address. The domain name of the NLB instance is resolved to the public IP address. Therefore, the NLB instance can be accessed over the Internet. Intranet: The NLB instance uses a private IP address. The domain name of the NLB instance is resolved to the private IP address. Therefore, the NLB instance can be accessed over the VPC where the NLB instance is deployed.
vpc_id
Required
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: The ID of the virtual private cloud (VPC) where the NLB instance is deployed.
zone_mappings
Required
zone_mappings: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ZoneMappingsProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ZoneMappingsProperty]]]
Property zoneMappings: The zones and the vSwitches in the zones.
You must specify at least two zones.
address_ip_version
Optional
address_ip_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property addressIpVersion: The version of IP address that the NLB instance uses to provide services.
bandwidth_package_id
Optional
bandwidth_package_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property bandwidthPackageId: Attach common bandwidth package to load balancer.
cross_zone_enabled
Optional
cross_zone_enabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property crossZoneEnabled: Whether enable cross zone.
Default: true
deletion_protection_config
Optional
deletion_protection_config: typing.Union[IResolvable, DeletionProtectionConfigProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, DeletionProtectionConfigProperty]
Property deletionProtectionConfig: The configuration of the deletion protection feature.
load_balancer_billing_config
Optional
load_balancer_billing_config: typing.Union[IResolvable, LoadBalancerBillingConfigProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, LoadBalancerBillingConfigProperty]
Property loadBalancerBillingConfig: The configuration of the billing method.
load_balancer_name
Optional
load_balancer_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property loadBalancerName: The name of the NLB instance.
The name must be 2 to 128 characters in length, and can contain letters, digits, periods(.), underscores (_), and hyphens (-). The name must start with a letter.
load_balancer_type
Optional
load_balancer_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property loadBalancerType: The type of the NLB instance.
modification_protection_config
Optional
modification_protection_config: typing.Union[IResolvable, ModificationProtectionConfigProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, ModificationProtectionConfigProperty]
Property modificationProtectionConfig: The configuration of the configuration read-only mode.
resource_group_id
Optional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: The ID of the resource group.
tags
Optional
tags: typing.List[TagsProperty]
- Type: typing.List[TagsProperty]
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
traffic_affinity_enabled
Optional
traffic_affinity_enabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property trafficAffinityEnabled: Whether enable traffic affinity.
Default: false