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. |
addressTypeRequired
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.
vpcIdRequired
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.
zoneMappingsRequired
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.
addressIpVersionOptional
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.
bandwidthPackageIdOptional
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.
crossZoneEnabledOptional
public java.lang.Object getCrossZoneEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property crossZoneEnabled: Whether enable cross zone.
Default: true
deletionProtectionConfigOptional
public java.lang.Object getDeletionProtectionConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR DeletionProtectionConfigProperty
Property deletionProtectionConfig: The configuration of the deletion protection feature.
loadBalancerBillingConfigOptional
public java.lang.Object getLoadBalancerBillingConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR LoadBalancerBillingConfigProperty
Property loadBalancerBillingConfig: The configuration of the billing method.
loadBalancerNameOptional
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.
loadBalancerTypeOptional
public java.lang.Object getLoadBalancerType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property loadBalancerType: The type of the NLB instance.
modificationProtectionConfigOptional
public java.lang.Object getModificationProtectionConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR ModificationProtectionConfigProperty
Property modificationProtectionConfig: The configuration of the configuration read-only mode.
resourceGroupIdOptional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
tagsOptional
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.
trafficAffinityEnabledOptional
public java.lang.Object getTrafficAffinityEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property trafficAffinityEnabled: Whether enable traffic affinity.
Default: false