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)
.loadBalancerName(java.lang.String)
.loadBalancerName(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)
// .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. |
loadBalancerName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property loadBalancerName: The name 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: The mode in which IP addresses are assigned. |
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. |
modificationProtectionConfig |
com.aliyun.ros.cdk.core.IResolvable OR ModificationProtectionConfigProperty |
Property modificationProtectionConfig: The configuration of modification protection. |
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. |
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 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 java.lang.Object getLoadBalancerBillingConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR LoadBalancerBillingConfigProperty
Property loadBalancerBillingConfig: The configuration of the billing method.
loadBalancerEdition
Required
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
loadBalancerName
Required
public java.lang.Object getLoadBalancerName();
- Type: java.lang.String OR com.aliyun.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 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.
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.
accessLogConfig
Optional
public java.lang.Object getAccessLogConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR AccessLogConfigProperty
Property accessLogConfig:.
addressAllocatedMode
Optional
public java.lang.Object getAddressAllocatedMode();
- Type: java.lang.String OR com.aliyun.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 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
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.
It only takes effect when AddressType=Internet.
deletionProtectionEnabled
Optional
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.
modificationProtectionConfig
Optional
public java.lang.Object getModificationProtectionConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR ModificationProtectionConfigProperty
Property modificationProtectionConfig: The configuration of modification protection.
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.
securityGroupIds
Optional
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.
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.