LoadBalancerProps
Properties for defining a LoadBalancer
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-nlb-loadbalancer
Initializer
import com.aliyun.ros.cdk.nlb.LoadBalancerProps;
LoadBalancerProps.builder()
.addressType(java.lang.String)
.addressType(IResolvable)
.vpcId(java.lang.String)
.vpcId(IResolvable)
.zoneMappings(IResolvable)
.zoneMappings(java.util.List<IResolvable)
.zoneMappings(ZoneMappingsProperty>)
// .addressIpVersion(java.lang.String)
// .addressIpVersion(IResolvable)
// .bandwidthPackageId(java.lang.String)
// .bandwidthPackageId(IResolvable)
// .crossZoneEnabled(java.lang.Boolean)
// .crossZoneEnabled(IResolvable)
// .deletionProtectionConfig(IResolvable)
// .deletionProtectionConfig(DeletionProtectionConfigProperty)
// .loadBalancerBillingConfig(IResolvable)
// .loadBalancerBillingConfig(LoadBalancerBillingConfigProperty)
// .loadBalancerName(java.lang.String)
// .loadBalancerName(IResolvable)
// .loadBalancerType(java.lang.String)
// .loadBalancerType(IResolvable)
// .modificationProtectionConfig(IResolvable)
// .modificationProtectionConfig(ModificationProtectionConfigProperty)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .trafficAffinityEnabled(java.lang.Boolean)
// .trafficAffinityEnabled(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
addressType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property addressType: The type of IP address that the NLB instance uses to provide services. |
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: The ID of the virtual private cloud (VPC) where the NLB instance is deployed. |
zoneMappings |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property zoneMappings: The zones and the vSwitches in the zones. |
addressIpVersion |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property addressIpVersion: The version of IP address that the NLB instance uses to provide services. |
bandwidthPackageId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property bandwidthPackageId: Attach common bandwidth package to load balancer. |
crossZoneEnabled |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property crossZoneEnabled: Whether enable cross zone. |
deletionProtectionConfig |
com.aliyun.ros.cdk.core.IResolvable OR DeletionProtectionConfigProperty |
Property deletionProtectionConfig: The configuration of the deletion protection feature. |
loadBalancerBillingConfig |
com.aliyun.ros.cdk.core.IResolvable OR LoadBalancerBillingConfigProperty |
Property loadBalancerBillingConfig: The configuration of the billing method. |
loadBalancerName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property loadBalancerName: The name of the NLB instance. |
loadBalancerType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property loadBalancerType: The type of the NLB instance. |
modificationProtectionConfig |
com.aliyun.ros.cdk.core.IResolvable OR ModificationProtectionConfigProperty |
Property modificationProtectionConfig: The configuration of the configuration read-only mode. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of the resource group. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to instance. |
trafficAffinityEnabled |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property trafficAffinityEnabled: Whether enable traffic affinity. |
addressType
Required
public java.lang.Object getAddressType();
- Type: java.lang.String OR com.aliyun.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.
vpcId
Required
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the virtual private cloud (VPC) where the NLB instance is deployed.
zoneMappings
Required
public java.lang.Object getZoneMappings();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ZoneMappingsProperty>
Property zoneMappings: The zones and the vSwitches in the zones.
You must specify at least two zones.
addressIpVersion
Optional
public java.lang.Object getAddressIpVersion();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property addressIpVersion: The version of IP address that the NLB instance uses to provide services.
bandwidthPackageId
Optional
public java.lang.Object getBandwidthPackageId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bandwidthPackageId: Attach common bandwidth package to load balancer.
crossZoneEnabled
Optional
public java.lang.Object getCrossZoneEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property crossZoneEnabled: Whether enable cross zone.
Default: true
deletionProtectionConfig
Optional
public java.lang.Object getDeletionProtectionConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR DeletionProtectionConfigProperty
Property deletionProtectionConfig: The configuration of the deletion protection feature.
loadBalancerBillingConfig
Optional
public java.lang.Object getLoadBalancerBillingConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR LoadBalancerBillingConfigProperty
Property loadBalancerBillingConfig: The configuration of the billing method.
loadBalancerName
Optional
public java.lang.Object getLoadBalancerName();
- Type: java.lang.String OR com.aliyun.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.
loadBalancerType
Optional
public java.lang.Object getLoadBalancerType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property loadBalancerType: The type of the NLB instance.
modificationProtectionConfig
Optional
public java.lang.Object getModificationProtectionConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR ModificationProtectionConfigProperty
Property modificationProtectionConfig: The configuration of the configuration read-only mode.
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.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.
trafficAffinityEnabled
Optional
public java.lang.Object getTrafficAffinityEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property trafficAffinityEnabled: Whether enable traffic affinity.
Default: false