LoadBalancerProps
Properties for defining a LoadBalancer
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-loadbalancer
Initializer
import ros_cdk_alb
ros_cdk_alb.LoadBalancerProps(
address_type: typing.Union[str, IResolvable],
load_balancer_billing_config: typing.Union[IResolvable, LoadBalancerBillingConfigProperty],
load_balancer_edition: typing.Union[str, IResolvable],
load_balancer_name: typing.Union[str, IResolvable],
vpc_id: typing.Union[str, IResolvable],
zone_mappings: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ZoneMappingsProperty]]],
access_log_config: typing.Union[IResolvable, AccessLogConfigProperty] = None,
address_allocated_mode: typing.Union[str, IResolvable] = None,
address_ip_version: typing.Union[str, IResolvable] = None,
bandwidth_package_id: typing.Union[str, IResolvable] = None,
deletion_protection_enabled: typing.Union[bool, IResolvable] = None,
modification_protection_config: typing.Union[IResolvable, ModificationProtectionConfigProperty] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
security_group_ids: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
tags: typing.List[TagsProperty] = None
)
Properties
Name | Type | Description |
---|---|---|
address_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property addressType: The type of IP address that the ALB instance uses to provide services. |
load_balancer_billing_config |
typing.Union[ros_cdk_core.IResolvable, LoadBalancerBillingConfigProperty] |
Property loadBalancerBillingConfig: The configuration of the billing method. |
load_balancer_edition |
typing.Union[str, ros_cdk_core.IResolvable] |
Property loadBalancerEdition: The edition of the ALB instance. |
load_balancer_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property loadBalancerName: The name of the ALB instance. |
vpc_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vpcId: The ID of the virtual private cloud (VPC) where the ALB 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. |
access_log_config |
typing.Union[ros_cdk_core.IResolvable, AccessLogConfigProperty] |
Property accessLogConfig:. |
address_allocated_mode |
typing.Union[str, ros_cdk_core.IResolvable] |
Property addressAllocatedMode: The mode in which IP addresses are assigned. |
address_ip_version |
typing.Union[str, ros_cdk_core.IResolvable] |
Property addressIpVersion: The protocol version. |
bandwidth_package_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property bandwidthPackageId: Attach common bandwidth package to load balancer. |
deletion_protection_enabled |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property deletionProtectionEnabled: Specifies whether to enable deletion protection. |
modification_protection_config |
typing.Union[ros_cdk_core.IResolvable, ModificationProtectionConfigProperty] |
Property modificationProtectionConfig: The configuration of modification protection. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: The ID of the resource group. |
security_group_ids |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] |
Property securityGroupIds: The IDs of the security group to which the ALB instance join. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to instance. |
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 ALB instance uses to provide services.
Valid values: Internet: The ALB instance uses a public IP address. The domain name of the ALB instance is resolved to the public IP address. Therefore, the ALB instance can be accessed over the Internet. Intranet: The ALB instance uses a private IP address. The domain name of the ALB instance is resolved to the private IP address. Therefore, the ALB instance can be accessed over the VPC where the ALB instance is deployed.
load_balancer_billing_config
Required
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_edition
Required
load_balancer_edition: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property loadBalancerEdition: The edition of the ALB instance.
Different editions have different limits and billing methods. Valid values: Basic: Basic Edition Standard: Standard Edition StandardWithWaf: Standard Edition with WAF
load_balancer_name
Required
load_balancer_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property loadBalancerName: The name of the ALB 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.
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 ALB 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.
access_log_config
Optional
access_log_config: typing.Union[IResolvable, AccessLogConfigProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, AccessLogConfigProperty]
Property accessLogConfig:.
address_allocated_mode
Optional
address_allocated_mode: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property addressAllocatedMode: The mode in which IP addresses are assigned.
Valid values: Fixed: The ALB instance uses a static IP address. Dynamic: An IP address is dynamically assigned to the ALB instance in each zone. This is the default value.
address_ip_version
Optional
address_ip_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property addressIpVersion: The protocol version.
Valid values: IPv4: IPv4 DualStack: dual stack
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.
It only takes effect when AddressType=Internet.
deletion_protection_enabled
Optional
deletion_protection_enabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property deletionProtectionEnabled: Specifies whether to enable deletion protection.
Default value: false.
modification_protection_config
Optional
modification_protection_config: typing.Union[IResolvable, ModificationProtectionConfigProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, ModificationProtectionConfigProperty]
Property modificationProtectionConfig: The configuration of modification protection.
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.
security_group_ids
Optional
security_group_ids: 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 securityGroupIds: The IDs of the security group to which the ALB instance join.
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.