LoadBalancerProps
Properties for defining a LoadBalancer.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-loadbalancer
Initializer
import com.aliyun.ros.cdk.alb.LoadBalancerProps;
LoadBalancerProps.builder()
.addressType(java.lang.String)
.addressType(IResolvable)
.loadBalancerBillingConfig(IResolvable)
.loadBalancerBillingConfig(LoadBalancerBillingConfigProperty)
.loadBalancerEdition(java.lang.String)
.loadBalancerEdition(IResolvable)
.vpcId(java.lang.String)
.vpcId(IResolvable)
.zoneMappings(IResolvable)
.zoneMappings(java.util.List<IResolvable)
.zoneMappings(ZoneMappingsProperty>)
// .accessLogConfig(IResolvable)
// .accessLogConfig(AccessLogConfigProperty)
// .addressAllocatedMode(java.lang.String)
// .addressAllocatedMode(IResolvable)
// .addressIpVersion(java.lang.String)
// .addressIpVersion(IResolvable)
// .bandwidthPackageId(java.lang.String)
// .bandwidthPackageId(IResolvable)
// .deletionProtectionEnabled(java.lang.Boolean)
// .deletionProtectionEnabled(IResolvable)
// .ipv6AddressType(java.lang.String)
// .ipv6AddressType(IResolvable)
// .loadBalancerName(java.lang.String)
// .loadBalancerName(IResolvable)
// .modificationProtectionConfig(IResolvable)
// .modificationProtectionConfig(ModificationProtectionConfigProperty)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .securityGroupIds(IResolvable)
// .securityGroupIds(java.util.List<java.lang.String)
// .securityGroupIds(IResolvable>)
// .tags(java.util.List<TagsProperty>)
.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 ALB instance uses to provide services. |
loadBalancerBillingConfig | com.aliyun.ros.cdk.core.IResolvable OR LoadBalancerBillingConfigProperty | Property loadBalancerBillingConfig: The configuration of the billing method. |
loadBalancerEdition | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property loadBalancerEdition: The edition of the ALB instance. |
vpcId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpcId: The ID of the virtual private cloud (VPC) where the ALB instance is deployed. |
zoneMappings | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property zoneMappings: The zones and the vSwitches in the zones. |
accessLogConfig | com.aliyun.ros.cdk.core.IResolvable OR AccessLogConfigProperty | Property accessLogConfig:. |
addressAllocatedMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property addressAllocatedMode: Address allocation mode. |
addressIpVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property addressIpVersion: The protocol version. |
bandwidthPackageId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bandwidthPackageId: Attach common bandwidth package to load balancer. |
deletionProtectionEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property deletionProtectionEnabled: Specifies whether to enable deletion protection. |
ipv6AddressType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ipv6AddressType: The type of IPv6 address that the ALB instance uses to provide services. |
loadBalancerName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property loadBalancerName: The name of the Application Load Balancer (ALB) instance. |
modificationProtectionConfig | com.aliyun.ros.cdk.core.IResolvable OR ModificationProtectionConfigProperty | Property modificationProtectionConfig: The modification protection configuration. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: The ID of the resource group. |
securityGroupIds | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property securityGroupIds: The IDs of the security group to which the ALB instance join. |
tags | java.util.List<TagsProperty> | Property tags: Tags to attach to instance. |
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 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.
loadBalancerBillingConfigRequired
public java.lang.Object getLoadBalancerBillingConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR LoadBalancerBillingConfigProperty
Property loadBalancerBillingConfig: The configuration of the billing method.
loadBalancerEditionRequired
public java.lang.Object getLoadBalancerEdition();
- Type: java.lang.String OR com.aliyun.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
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 ALB 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.
accessLogConfigOptional
public java.lang.Object getAccessLogConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR AccessLogConfigProperty
Property accessLogConfig:.
addressAllocatedModeOptional
public java.lang.Object getAddressAllocatedMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property addressAllocatedMode: Address allocation mode.
Valid values:
- Fixed (Default): A fixed IP address is allocated to each zone.
- Dynamic: Dynamic IP mode. IP addresses are dynamically allocated for each zone.
Starting from , when you create a new instance by using this interface, it is created as an upgraded ALB instance regardless of the mode you specify. The distinction between IP modes is removed, and the allocated IP addresses are automatically elastic. ALB instances created before the upgrade are not affected.
addressIpVersionOptional
public java.lang.Object getAddressIpVersion();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property addressIpVersion: The protocol version.
Valid values: IPv4: IPv4 DualStack: dual stack
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.
It only takes effect when AddressType=Internet.
deletionProtectionEnabledOptional
public java.lang.Object getDeletionProtectionEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionProtectionEnabled: Specifies whether to enable deletion protection.
Default value: false.
ipv6AddressTypeOptional
public java.lang.Object getIpv6AddressType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipv6AddressType: The type of IPv6 address that the ALB instance uses to provide services.
Valid values: Internet: The ALB instance uses a public IPv6 address. The domain name of the ALB instance is resolved to the public IPv6 address. Intranet: The ALB instance uses a private IPv6 address. The domain name of the ALB instance is resolved to the private IP address.
loadBalancerNameOptional
public java.lang.Object getLoadBalancerName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property loadBalancerName: The name of the Application Load Balancer (ALB) instance.
The name must be 2 to 128 characters long, must start with a letter, digit, or Chinese character, and can contain digits, periods (.), underscores (_), hyphens (-), and spaces.
modificationProtectionConfigOptional
public java.lang.Object getModificationProtectionConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR ModificationProtectionConfigProperty
Property modificationProtectionConfig: The modification protection configuration.
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.
securityGroupIdsOptional
public java.lang.Object getSecurityGroupIds();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property securityGroupIds: The IDs of the security group to which the ALB instance join.
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.