ALIYUN::NLB::LoadBalancer is used to create a Network Load Balancer (NLB) instance.
Syntax
{
"Type": "ALIYUN::NLB::LoadBalancer",
"Properties": {
"LoadBalancerName": String,
"AddressIpVersion": String,
"ResourceGroupId": String,
"VpcId": String,
"LoadBalancerBillingConfig": Map,
"TrafficAffinityEnabled": Boolean,
"BandwidthPackageId": String,
"AddressType": String,
"ZoneMappings": List,
"CrossZoneEnabled": Boolean,
"LoadBalancerType": String,
"DeletionProtectionConfig": Map,
"ModificationProtectionConfig": Map,
"Tags": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
LoadBalancerName | String | No | Yes | The name of the NLB instance. | None |
AddressIpVersion | String | No | No | The IP version of the NLB instance. | Valid values:
|
ResourceGroupId | String | No | No | The ID of the resource group. | None |
VpcId | String | Yes | No | The ID of the virtual private cloud (VPC) to which the NLB instance belongs. | None |
LoadBalancerBillingConfig | Map | No | No | The billing configurations of the NLB instance. | For more information, see LoadBalancerBillingConfig property. |
TrafficAffinityEnabled | Boolean | No | Yes | Specifies whether to enable traffic affinity. | Valid values:
|
BandwidthPackageId | String | No | Yes | The ID of the EIP bandwidth plan of the Internet-facing NLB instance. | None |
AddressType | String | Yes | Yes | The type of the IPv4 address of the NLB instance. | Valid values:
|
ZoneMappings | List | Yes | No | The mappings between zones and vSwitches. | For more information, see ZoneMappings properties. |
CrossZoneEnabled | Boolean | No | Yes | Specifies whether to enable cross-zone load balancing. | Valid values:
|
LoadBalancerType | String | No | No | The type of the NLB instance. | None |
DeletionProtectionConfig | Map | No | Yes | The configuration of deletion protection. | For more information, see DeletionProtectionConfig properties. |
ModificationProtectionConfig | Map | No | Yes | The configuration of deletion protection. | For more information, see ModificationProtectionConfig properties. |
Tags | List | No | Yes | The tags. | For more information, see Tags properties. |
LoadBalancerBillingConfig syntax
"LoadBalancerBillingConfig": {
"PayType": String
}
LoadBalancerBillingConfig property
Property | Type | Required | Editable | Description | Constraint |
PayType | String | No | No | The billing method of the NLB instance. | Valid values:
|
ZoneMappings syntax
"ZoneMappings": [
{
"ZoneId": String,
"VSwitchId": String,
"AllocationId": String,
"PrivateIPv4Address": String,
"LoadBalancerAddresses": List
}
]
ZoneMappings properties
Property | Type | Required | Editable | Description | Constraint |
ZoneId | String | Yes | No | The zone ID of the NLB instance. | You can call the DescribeZones operation to query the zones of the NLB instance. |
VSwitchId | String | Yes | No | The vSwitch of the zone. | You can use only one vSwitch in each zone. |
AllocationId | String | No | No | The EIP ID. | None |
PrivateIPv4Address | String | No | No | The IPv4 address. | None |
LoadBalancerAddresses | List | No | No | The endpoints of the NLB instances. | This property takes precedence over AllocationId and EipType in the "ZoneMappings" section. For more information, see LoadBalancerAddresses properties. |
EipType | String | No | No | The EIP type. | Valid values:
Note For information about the regions in which you can associate Anycast EIPs with NLB instances, see Associate Anycast EIPs with an ALB instance to enable access through the nearest access point. |
LoadBalancerAddresses syntax
"LoadBalancerAddresses": {
"AllocationId": String,
"PrivateIPv4Address": String
}
LoadBalancerAddresses properties
Property | Type | Required | Editable | Description | Constraint |
AllocationId | String | Yes | No | The EIP ID. | None |
PrivateIPv4Address | String | No | No | The IPv4 address. | None |
DeletionProtectionConfig syntax
"DeletionProtectionConfig": {
"Enabled": String,
"Reason": String
}
DeletionProtectionConfig properties
Property | Type | Required | Editable | Description | Constraint |
Enabled | String | Yes | Yes | Specifies whether to enable deletion protection. | Valid values:
|
Reason | String | No | Yes | The reason why deletion protection is enabled or disabled. | The value must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter. |
ModificationProtectionConfig syntax
"ModificationProtectionConfig": {
"Reason": String,
"Status": String
}
ModificationProtectionConfig properties
Property | Type | Required | Editable | Description | Constraint |
Reason | String | No | Yes | The reason why deletion protection is enabled. | The value must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The value must start with a letter. Note This property takes effect only if Status is set to ConsoleProtection. |
Status | String | Yes | Yes | Specifies whether deletion protection is enabled. | Valid values:
Note If you set this property to ConsoleProtection, you cannot modify instance configurations in the NLB console. However, you can modify instance configurations by calling API operations. |
Tags syntax
"Tags": {
"Key": String,
"Value": String
}
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Key | String | Yes | No | The tag key. | The tag key can be up to 128 characters in length and cannot contain You can add up to 20 tags in each call. |
Value | String | No | No | The tag value. | The tag value can be up to 128 characters in length and cannot start with You can add up to 20 tags in each call. |
Return values
Fn::GetAtt
AddressIpVersion: the IP version of the NLB instance.
VpcId: the ID of the VPC to which the NLB instance belongs.
LoadBalancerId: the ID of the NLB instance.
AddressType: the type of the IPv4 address that is used by the NLB instance.
DNSName: the domain name of the NLB instance.
ZoneMappings: the mappings between zones and vSwitches.
LoadBalancerType: the type of the NLB instance.