LoadBalancerProps
Properties for defining a LoadBalancer
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-nlb-loadbalancer
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdknlb"
&alicloudroscdknlb.LoadBalancerProps {
AddressType: interface{},
VpcId: interface{},
ZoneMappings: interface{},
AddressIpVersion: interface{},
BandwidthPackageId: interface{},
CrossZoneEnabled: interface{},
DeletionProtectionConfig: interface{},
LoadBalancerBillingConfig: interface{},
LoadBalancerName: interface{},
LoadBalancerType: interface{},
ModificationProtectionConfig: interface{},
ResourceGroupId: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdknlb.RosLoadBalancer.TagsProperty,
TrafficAffinityEnabled: interface{},
}
Properties
Name | Type | Description |
---|---|---|
AddressType |
interface{} |
Property addressType: The type of IP address that the NLB instance uses to provide services. |
VpcId |
interface{} |
Property vpcId: The ID of the virtual private cloud (VPC) where the NLB instance is deployed. |
ZoneMappings |
interface{} |
Property zoneMappings: The zones and the vSwitches in the zones. |
AddressIpVersion |
interface{} |
Property addressIpVersion: The version of IP address that the NLB instance uses to provide services. |
BandwidthPackageId |
interface{} |
Property bandwidthPackageId: Attach common bandwidth package to load balancer. |
CrossZoneEnabled |
interface{} |
Property crossZoneEnabled: Whether enable cross zone. |
DeletionProtectionConfig |
interface{} |
Property deletionProtectionConfig: The configuration of the deletion protection feature. |
LoadBalancerBillingConfig |
interface{} |
Property loadBalancerBillingConfig: The configuration of the billing method. |
LoadBalancerName |
interface{} |
Property loadBalancerName: The name of the NLB instance. |
LoadBalancerType |
interface{} |
Property loadBalancerType: The type of the NLB instance. |
ModificationProtectionConfig |
interface{} |
Property modificationProtectionConfig: The configuration of the configuration read-only mode. |
ResourceGroupId |
interface{} |
Property resourceGroupId: The ID of the resource group. |
Tags |
*[]TagsProperty |
Property tags: Tags to attach to instance. |
TrafficAffinityEnabled |
interface{} |
Property trafficAffinityEnabled: Whether enable traffic affinity. |
AddressType
Required
AddressType interface{}
- Type: interface{}
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
VpcId interface{}
- Type: interface{}
Property vpcId: The ID of the virtual private cloud (VPC) where the NLB instance is deployed.
ZoneMappings
Required
ZoneMappings interface{}
- Type: interface{}
Property zoneMappings: The zones and the vSwitches in the zones.
You must specify at least two zones.
AddressIpVersion
Optional
AddressIpVersion interface{}
- Type: interface{}
Property addressIpVersion: The version of IP address that the NLB instance uses to provide services.
BandwidthPackageId
Optional
BandwidthPackageId interface{}
- Type: interface{}
Property bandwidthPackageId: Attach common bandwidth package to load balancer.
CrossZoneEnabled
Optional
CrossZoneEnabled interface{}
- Type: interface{}
Property crossZoneEnabled: Whether enable cross zone.
Default: true
DeletionProtectionConfig
Optional
DeletionProtectionConfig interface{}
- Type: interface{}
Property deletionProtectionConfig: The configuration of the deletion protection feature.
LoadBalancerBillingConfig
Optional
LoadBalancerBillingConfig interface{}
- Type: interface{}
Property loadBalancerBillingConfig: The configuration of the billing method.
LoadBalancerName
Optional
LoadBalancerName interface{}
- Type: interface{}
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
LoadBalancerType interface{}
- Type: interface{}
Property loadBalancerType: The type of the NLB instance.
ModificationProtectionConfig
Optional
ModificationProtectionConfig interface{}
- Type: interface{}
Property modificationProtectionConfig: The configuration of the configuration read-only mode.
ResourceGroupId
Optional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group.
Tags
Optional
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.
TrafficAffinityEnabled
Optional
TrafficAffinityEnabled interface{}
- Type: interface{}
Property trafficAffinityEnabled: Whether enable traffic affinity.
Default: false