Skip to content

LoadBalancerProps

Properties for defining a LoadBalancer.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-slb-loadbalancer

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb"
&alicloudroscdkslb.LoadBalancerProps {
    AddressIpVersion: interface{},
    AddressType: interface{},
    Bandwidth: interface{},
    DeletionProtection: interface{},
    InstanceChargeType: interface{},
    InternetChargeType: interface{},
    LoadBalancerName: interface{},
    LoadBalancerSpec: interface{},
    MasterZoneId: interface{},
    ModificationProtectionReason: interface{},
    ModificationProtectionStatus: interface{},
    ResourceGroupId: interface{},
    SlaveZoneId: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkslb.RosLoadBalancer.TagsProperty,
    VpcId: interface{},
    VSwitchId: interface{},
}

Properties

Name Type Description
AddressIpVersion interface{} Property addressIpVersion: IP version, support 'ipv4' or 'ipv6'.
AddressType interface{} Property addressType: The network type of the CLB instance.
Bandwidth interface{} Property bandwidth: The bandwidth for network, unit in Mbps(Mega bit per second).
DeletionProtection interface{} Property deletionProtection: Whether to enable deletion protection.
InstanceChargeType interface{} Property instanceChargeType: Instance billing method.
InternetChargeType interface{} Property internetChargeType: The metering method of the Internet-facing CLB instance.
LoadBalancerName interface{} Property loadBalancerName: Name of created load balancer.
LoadBalancerSpec interface{} Property loadBalancerSpec: The specification of the CLB instance.
MasterZoneId interface{} Property masterZoneId: The master zone id to create load balancer instance.
ModificationProtectionReason interface{} Property modificationProtectionReason: Set the reason for modifying the protection status.
ModificationProtectionStatus interface{} Property modificationProtectionStatus: NonProtection or empty: means no restriction on modification protection ConsoleProtection: Modify instance protection status by console Default value is empty.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
SlaveZoneId interface{} Property slaveZoneId: The slave zone id to create load balancer instance.
Tags *[]TagsProperty Property tags: Tags to attach to slb.
VpcId interface{} Property vpcId: The VPC id to create load balancer instance.
VSwitchId interface{} Property vSwitchId: The VSwitch id to create load balancer instance.

AddressIpVersionOptional

AddressIpVersion interface{}
  • Type: interface{}

Property addressIpVersion: IP version, support 'ipv4' or 'ipv6'.

If 'ipv6' is selected, please note that the zone and the specification are supported.


AddressTypeOptional

AddressType interface{}
  • Type: interface{}

Property addressType: The network type of the CLB instance.

Valid values:

  • internet (default): After an internet-facing CLB instance is created, the system assigns a public IP address to the CLB instance. Then, the CLB instance can forward requests over the Internet.
  • intranet: After an internal-facing CLB instance is created, the system assigns a private IP address to the CLB instance. Then, the CLB instance can forward requests only over the internal networks.

BandwidthOptional

Bandwidth interface{}
  • Type: interface{}

Property bandwidth: The bandwidth for network, unit in Mbps(Mega bit per second).

Default is 1. If InternetChargeType is specified as "paybytraffic", this property will be ignore and please specify the "Bandwidth" in ALIYUN::SLB::Listener.


DeletionProtectionOptional

DeletionProtection interface{}
  • Type: interface{}

Property deletionProtection: Whether to enable deletion protection.


InstanceChargeTypeOptional

InstanceChargeType interface{}
  • Type: interface{}

Property instanceChargeType: Instance billing method.

Valid value:

  • PayBySpec (default): Pay by spec.
  • PayByCLCU: billed by usage.

InternetChargeTypeOptional

InternetChargeType interface{}
  • Type: interface{}

Property internetChargeType: The metering method of the Internet-facing CLB instance.

Valid values:

  • paybytraffic (default): If you set the value to paybytraffic, you do not need to specify Bandwidth. Even if you specify Bandwidth, the value does not take effect.
  • paybybandwidth: pay-by-bandwidth. Note If you set PayType to PayOnDemand and set InstanceChargeType to PayByCLCU, you must set InternetChargeType to paybytraffic.

LoadBalancerNameOptional

LoadBalancerName interface{}
  • Type: interface{}

Property loadBalancerName: Name of created load balancer.

Length is limited to 1-80 characters, allowed to contain letters, numbers, '-, /, _,.' When not specified, a default name will be assigned.


LoadBalancerSpecOptional

LoadBalancerSpec interface{}
  • Type: interface{}

Property loadBalancerSpec: The specification of the CLB instance.

Valid values:

  • slb.s1.small
  • slb.s2.small
  • slb.s2.medium
  • slb.s3.small
  • slb.s3.medium
  • slb.s3.large Note If you do not specify this parameter, a shared-resource CLB instance is created. Shared-resource CLB instances are no longer available for purchase. Therefore, you must specify this parameter. If InstanceChargeType is set to PayByCLCU, this parameter is invalid and you do not need to specify this parameter.

MasterZoneIdOptional

MasterZoneId interface{}
  • Type: interface{}

Property masterZoneId: The master zone id to create load balancer instance.


ModificationProtectionReasonOptional

ModificationProtectionReason interface{}
  • Type: interface{}

Property modificationProtectionReason: Set the reason for modifying the protection status.

The length is 1-80 English or Chinese characters, must start with upper and lower letters or Chinese, and can include numbers, periods (.), underscores (_) and dashes (-). Only valid when ModificationProtectionStatus is ConsoleProtection.


ModificationProtectionStatusOptional

ModificationProtectionStatus interface{}
  • Type: interface{}

Property modificationProtectionStatus: NonProtection or empty: means no restriction on modification protection ConsoleProtection: Modify instance protection status by console Default value is empty.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


SlaveZoneIdOptional

SlaveZoneId interface{}
  • Type: interface{}

Property slaveZoneId: The slave zone id to create load balancer instance.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to slb.

Max support 5 tags to add during create slb. Each tag with two properties Key and Value, and Key is required.


VpcIdOptional

VpcId interface{}
  • Type: interface{}

Property vpcId: The VPC id to create load balancer instance.

For VPC network only.


VSwitchIdOptional

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The VSwitch id to create load balancer instance.

For VPC network only.