LoadBalancerProps
Properties for defining a LoadBalancer
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-loadbalancer
Initializer
import { LoadBalancerProps } from '@alicloud/ros-cdk-alb'
const loadBalancerProps: LoadBalancerProps = { ... }
Properties
Name | Type | Description |
---|---|---|
addressType |
string | @alicloud/ros-cdk-core.IResolvable |
Property addressType: The type of IP address that the ALB instance uses to provide services. |
loadBalancerBillingConfig |
@alicloud/ros-cdk-core.IResolvable | LoadBalancerBillingConfigProperty |
Property loadBalancerBillingConfig: The configuration of the billing method. |
loadBalancerEdition |
string | @alicloud/ros-cdk-core.IResolvable |
Property loadBalancerEdition: The edition of the ALB instance. |
loadBalancerName |
string | @alicloud/ros-cdk-core.IResolvable |
Property loadBalancerName: The name of the ALB instance. |
vpcId |
string | @alicloud/ros-cdk-core.IResolvable |
Property vpcId: The ID of the virtual private cloud (VPC) where the ALB instance is deployed. |
zoneMappings |
@alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ZoneMappingsProperty[] |
Property zoneMappings: The zones and the vSwitches in the zones. |
accessLogConfig |
@alicloud/ros-cdk-core.IResolvable | AccessLogConfigProperty |
Property accessLogConfig:. |
addressAllocatedMode |
string | @alicloud/ros-cdk-core.IResolvable |
Property addressAllocatedMode: The mode in which IP addresses are assigned. |
addressIpVersion |
string | @alicloud/ros-cdk-core.IResolvable |
Property addressIpVersion: The protocol version. |
bandwidthPackageId |
string | @alicloud/ros-cdk-core.IResolvable |
Property bandwidthPackageId: Attach common bandwidth package to load balancer. |
deletionProtectionEnabled |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property deletionProtectionEnabled: Specifies whether to enable deletion protection. |
modificationProtectionConfig |
@alicloud/ros-cdk-core.IResolvable | ModificationProtectionConfigProperty |
Property modificationProtectionConfig: The configuration of modification protection. |
resourceGroupId |
string | @alicloud/ros-cdk-core.IResolvable |
Property resourceGroupId: The ID of the resource group. |
securityGroupIds |
@alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] |
Property securityGroupIds: The IDs of the security group to which the ALB instance join. |
tags |
TagsProperty[] |
Property tags: Tags to attach to instance. |
addressType
Required
public readonly addressType: string | IResolvable;
- Type: string | @alicloud/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.
loadBalancerBillingConfig
Required
public readonly loadBalancerBillingConfig: IResolvable | LoadBalancerBillingConfigProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | LoadBalancerBillingConfigProperty
Property loadBalancerBillingConfig: The configuration of the billing method.
loadBalancerEdition
Required
public readonly loadBalancerEdition: string | IResolvable;
- Type: string | @alicloud/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
loadBalancerName
Required
public readonly loadBalancerName: string | IResolvable;
- Type: string | @alicloud/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.
vpcId
Required
public readonly vpcId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property vpcId: The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
zoneMappings
Required
public readonly zoneMappings: IResolvable | IResolvable | ZoneMappingsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ZoneMappingsProperty[]
Property zoneMappings: The zones and the vSwitches in the zones.
You must specify at least two zones.
accessLogConfig
Optional
public readonly accessLogConfig: IResolvable | AccessLogConfigProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | AccessLogConfigProperty
Property accessLogConfig:.
addressAllocatedMode
Optional
public readonly addressAllocatedMode: string | IResolvable;
- Type: string | @alicloud/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.
addressIpVersion
Optional
public readonly addressIpVersion: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property addressIpVersion: The protocol version.
Valid values: IPv4: IPv4 DualStack: dual stack
bandwidthPackageId
Optional
public readonly bandwidthPackageId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property bandwidthPackageId: Attach common bandwidth package to load balancer.
It only takes effect when AddressType=Internet.
deletionProtectionEnabled
Optional
public readonly deletionProtectionEnabled: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property deletionProtectionEnabled: Specifies whether to enable deletion protection.
Default value: false.
modificationProtectionConfig
Optional
public readonly modificationProtectionConfig: IResolvable | ModificationProtectionConfigProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | ModificationProtectionConfigProperty
Property modificationProtectionConfig: The configuration of modification protection.
resourceGroupId
Optional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: The ID of the resource group.
securityGroupIds
Optional
public readonly securityGroupIds: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property securityGroupIds: The IDs of the security group to which the ALB instance join.
tags
Optional
public readonly tags: TagsProperty[];
- Type: 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.