LoadBalancerProps
Properties for defining a LoadBalancer.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-loadbalancer
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkalb"
&alicloudroscdkalb.LoadBalancerProps {
AddressType: interface{},
LoadBalancerBillingConfig: interface{},
LoadBalancerEdition: interface{},
VpcId: interface{},
ZoneMappings: interface{},
AccessLogConfig: interface{},
AddressAllocatedMode: interface{},
AddressIpVersion: interface{},
BandwidthPackageId: interface{},
DeletionProtectionEnabled: interface{},
Ipv6AddressType: interface{},
LoadBalancerName: interface{},
ModificationProtectionConfig: interface{},
ResourceGroupId: interface{},
SecurityGroupIds: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkalb.RosLoadBalancer.TagsProperty,
}
Properties
| Name | Type | Description |
|---|---|---|
AddressType | interface{} | Property addressType: The type of IP address that the ALB instance uses to provide services. |
LoadBalancerBillingConfig | interface{} | Property loadBalancerBillingConfig: The configuration of the billing method. |
LoadBalancerEdition | interface{} | Property loadBalancerEdition: The edition of the ALB instance. |
VpcId | interface{} | Property vpcId: The ID of the virtual private cloud (VPC) where the ALB instance is deployed. |
ZoneMappings | interface{} | Property zoneMappings: The zones and the vSwitches in the zones. |
AccessLogConfig | interface{} | Property accessLogConfig:. |
AddressAllocatedMode | interface{} | Property addressAllocatedMode: Address allocation mode. |
AddressIpVersion | interface{} | Property addressIpVersion: The protocol version. |
BandwidthPackageId | interface{} | Property bandwidthPackageId: Attach common bandwidth package to load balancer. |
DeletionProtectionEnabled | interface{} | Property deletionProtectionEnabled: Specifies whether to enable deletion protection. |
Ipv6AddressType | interface{} | Property ipv6AddressType: The type of IPv6 address that the ALB instance uses to provide services. |
LoadBalancerName | interface{} | Property loadBalancerName: The name of the Application Load Balancer (ALB) instance. |
ModificationProtectionConfig | interface{} | Property modificationProtectionConfig: The modification protection configuration. |
ResourceGroupId | interface{} | Property resourceGroupId: The ID of the resource group. |
SecurityGroupIds | interface{} | Property securityGroupIds: The IDs of the security group to which the ALB instance join. |
Tags | *[]TagsProperty | Property tags: Tags to attach to instance. |
AddressTypeRequired
AddressType interface{}
- Type: interface{}
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
LoadBalancerBillingConfig interface{}
- Type: interface{}
Property loadBalancerBillingConfig: The configuration of the billing method.
LoadBalancerEditionRequired
LoadBalancerEdition interface{}
- Type: interface{}
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
VpcId interface{}
- Type: interface{}
Property vpcId: The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
ZoneMappingsRequired
ZoneMappings interface{}
- Type: interface{}
Property zoneMappings: The zones and the vSwitches in the zones.
You must specify at least two zones.
AccessLogConfigOptional
AccessLogConfig interface{}
- Type: interface{}
Property accessLogConfig:.
AddressAllocatedModeOptional
AddressAllocatedMode interface{}
- Type: interface{}
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
AddressIpVersion interface{}
- Type: interface{}
Property addressIpVersion: The protocol version.
Valid values: IPv4: IPv4 DualStack: dual stack
BandwidthPackageIdOptional
BandwidthPackageId interface{}
- Type: interface{}
Property bandwidthPackageId: Attach common bandwidth package to load balancer.
It only takes effect when AddressType=Internet.
DeletionProtectionEnabledOptional
DeletionProtectionEnabled interface{}
- Type: interface{}
Property deletionProtectionEnabled: Specifies whether to enable deletion protection.
Default value: false.
Ipv6AddressTypeOptional
Ipv6AddressType interface{}
- Type: interface{}
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
LoadBalancerName interface{}
- Type: interface{}
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
ModificationProtectionConfig interface{}
- Type: interface{}
Property modificationProtectionConfig: The modification protection configuration.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group.
SecurityGroupIdsOptional
SecurityGroupIds interface{}
- Type: interface{}
Property securityGroupIds: The IDs of the security group to which the ALB instance join.
TagsOptional
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.