1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. ens
  6. LoadBalancerUdpListener
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi

    Provides a ENS Load Balancer Udp Listener resource.

    Load-balanced UDP listener.

    For information about ENS Load Balancer Udp Listener and how to use it, see What is Load Balancer Udp Listener.

    NOTE: Available since v1.291.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const ensRegionId = config.get("ensRegionId") || "cn-chenzhou-telecom_unicom_cmcc";
    const _default = new alicloud.ens.Network("default", {
        networkName: name,
        cidrBlock: "10.0.0.0/8",
        ensRegionId: ensRegionId,
    });
    const defaultVswitch = new alicloud.ens.Vswitch("default", {
        cidrBlock: "10.0.6.0/24",
        vswitchName: name,
        ensRegionId: _default.ensRegionId,
        networkId: _default.id,
    });
    const defaultLoadBalancer = new alicloud.ens.LoadBalancer("default", {
        loadBalancerName: name,
        vswitchId: defaultVswitch.id,
        paymentType: "PayAsYouGo",
        ensRegionId: defaultVswitch.ensRegionId,
        networkId: defaultVswitch.networkId,
        loadBalancerSpec: "elb.s1.small",
    });
    const defaultLoadBalancerUdpListener = new alicloud.ens.LoadBalancerUdpListener("default", {
        loadBalancerId: defaultLoadBalancer.id,
        listenerPort: 53,
        backendServerPort: 53,
        description: "example-udp-listener",
        scheduler: "wrr",
        healthyThreshold: 2,
        unhealthyThreshold: 2,
        healthCheckConnectTimeout: 5,
        healthCheckInterval: 2,
        healthCheckConnectPort: 53,
        healthCheckReq: "hello",
        healthCheckExp: "rep",
        eipTransmit: "off",
        establishedTimeout: 900,
        status: "Stopped",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    ens_region_id = config.get("ensRegionId")
    if ens_region_id is None:
        ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
    default = alicloud.ens.Network("default",
        network_name=name,
        cidr_block="10.0.0.0/8",
        ens_region_id=ens_region_id)
    default_vswitch = alicloud.ens.Vswitch("default",
        cidr_block="10.0.6.0/24",
        vswitch_name=name,
        ens_region_id=default.ens_region_id,
        network_id=default.id)
    default_load_balancer = alicloud.ens.LoadBalancer("default",
        load_balancer_name=name,
        vswitch_id=default_vswitch.id,
        payment_type="PayAsYouGo",
        ens_region_id=default_vswitch.ens_region_id,
        network_id=default_vswitch.network_id,
        load_balancer_spec="elb.s1.small")
    default_load_balancer_udp_listener = alicloud.ens.LoadBalancerUdpListener("default",
        load_balancer_id=default_load_balancer.id,
        listener_port=53,
        backend_server_port=53,
        description="example-udp-listener",
        scheduler="wrr",
        healthy_threshold=2,
        unhealthy_threshold=2,
        health_check_connect_timeout=5,
        health_check_interval=2,
        health_check_connect_port=53,
        health_check_req="hello",
        health_check_exp="rep",
        eip_transmit="off",
        established_timeout=900,
        status="Stopped")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ens"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		ensRegionId := "cn-chenzhou-telecom_unicom_cmcc"
    		if param := cfg.Get("ensRegionId"); param != "" {
    			ensRegionId = param
    		}
    		_default, err := ens.NewNetwork(ctx, "default", &ens.NetworkArgs{
    			NetworkName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.0.0.0/8"),
    			EnsRegionId: pulumi.String(ensRegionId),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVswitch, err := ens.NewVswitch(ctx, "default", &ens.VswitchArgs{
    			CidrBlock:   pulumi.String("10.0.6.0/24"),
    			VswitchName: pulumi.String(name),
    			EnsRegionId: _default.EnsRegionId,
    			NetworkId:   _default.ID().ToIDOutput().ToStringOutput(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultLoadBalancer, err := ens.NewLoadBalancer(ctx, "default", &ens.LoadBalancerArgs{
    			LoadBalancerName: pulumi.String(name),
    			VswitchId:        defaultVswitch.ID().ToIDOutput().ToStringOutput(),
    			PaymentType:      pulumi.String("PayAsYouGo"),
    			EnsRegionId:      defaultVswitch.EnsRegionId,
    			NetworkId:        defaultVswitch.NetworkId,
    			LoadBalancerSpec: pulumi.String("elb.s1.small"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ens.NewLoadBalancerUdpListener(ctx, "default", &ens.LoadBalancerUdpListenerArgs{
    			LoadBalancerId:            defaultLoadBalancer.ID().ToIDOutput().ToStringOutput(),
    			ListenerPort:              pulumi.Int(53),
    			BackendServerPort:         pulumi.Int(53),
    			Description:               pulumi.String("example-udp-listener"),
    			Scheduler:                 pulumi.String("wrr"),
    			HealthyThreshold:          pulumi.Int(2),
    			UnhealthyThreshold:        pulumi.Int(2),
    			HealthCheckConnectTimeout: pulumi.Int(5),
    			HealthCheckInterval:       pulumi.Int(2),
    			HealthCheckConnectPort:    pulumi.Int(53),
    			HealthCheckReq:            pulumi.String("hello"),
    			HealthCheckExp:            pulumi.String("rep"),
    			EipTransmit:               pulumi.String("off"),
    			EstablishedTimeout:        pulumi.Int(900),
    			Status:                    pulumi.String("Stopped"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var ensRegionId = config.Get("ensRegionId") ?? "cn-chenzhou-telecom_unicom_cmcc";
        var @default = new AliCloud.Ens.Network("default", new()
        {
            NetworkName = name,
            CidrBlock = "10.0.0.0/8",
            EnsRegionId = ensRegionId,
        });
    
        var defaultVswitch = new AliCloud.Ens.Vswitch("default", new()
        {
            CidrBlock = "10.0.6.0/24",
            VswitchName = name,
            EnsRegionId = @default.EnsRegionId,
            NetworkId = @default.Id,
        });
    
        var defaultLoadBalancer = new AliCloud.Ens.LoadBalancer("default", new()
        {
            LoadBalancerName = name,
            VswitchId = defaultVswitch.Id,
            PaymentType = "PayAsYouGo",
            EnsRegionId = defaultVswitch.EnsRegionId,
            NetworkId = defaultVswitch.NetworkId,
            LoadBalancerSpec = "elb.s1.small",
        });
    
        var defaultLoadBalancerUdpListener = new AliCloud.Ens.LoadBalancerUdpListener("default", new()
        {
            LoadBalancerId = defaultLoadBalancer.Id,
            ListenerPort = 53,
            BackendServerPort = 53,
            Description = "example-udp-listener",
            Scheduler = "wrr",
            HealthyThreshold = 2,
            UnhealthyThreshold = 2,
            HealthCheckConnectTimeout = 5,
            HealthCheckInterval = 2,
            HealthCheckConnectPort = 53,
            HealthCheckReq = "hello",
            HealthCheckExp = "rep",
            EipTransmit = "off",
            EstablishedTimeout = 900,
            Status = "Stopped",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ens.Network;
    import com.pulumi.alicloud.ens.NetworkArgs;
    import com.pulumi.alicloud.ens.Vswitch;
    import com.pulumi.alicloud.ens.VswitchArgs;
    import com.pulumi.alicloud.ens.LoadBalancer;
    import com.pulumi.alicloud.ens.LoadBalancerArgs;
    import com.pulumi.alicloud.ens.LoadBalancerUdpListener;
    import com.pulumi.alicloud.ens.LoadBalancerUdpListenerArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var ensRegionId = config.get("ensRegionId").orElse("cn-chenzhou-telecom_unicom_cmcc");
            var default_ = new Network("default", NetworkArgs.builder()
                .networkName(name)
                .cidrBlock("10.0.0.0/8")
                .ensRegionId(ensRegionId)
                .build());
    
            var defaultVswitch = new Vswitch("defaultVswitch", VswitchArgs.builder()
                .cidrBlock("10.0.6.0/24")
                .vswitchName(name)
                .ensRegionId(default_.ensRegionId())
                .networkId(default_.id())
                .build());
    
            var defaultLoadBalancer = new LoadBalancer("defaultLoadBalancer", LoadBalancerArgs.builder()
                .loadBalancerName(name)
                .vswitchId(defaultVswitch.id())
                .paymentType("PayAsYouGo")
                .ensRegionId(defaultVswitch.ensRegionId())
                .networkId(defaultVswitch.networkId())
                .loadBalancerSpec("elb.s1.small")
                .build());
    
            var defaultLoadBalancerUdpListener = new LoadBalancerUdpListener("defaultLoadBalancerUdpListener", LoadBalancerUdpListenerArgs.builder()
                .loadBalancerId(defaultLoadBalancer.id())
                .listenerPort(53)
                .backendServerPort(53)
                .description("example-udp-listener")
                .scheduler("wrr")
                .healthyThreshold(2)
                .unhealthyThreshold(2)
                .healthCheckConnectTimeout(5)
                .healthCheckInterval(2)
                .healthCheckConnectPort(53)
                .healthCheckReq("hello")
                .healthCheckExp("rep")
                .eipTransmit("off")
                .establishedTimeout(900)
                .status("Stopped")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      ensRegionId:
        type: string
        default: cn-chenzhou-telecom_unicom_cmcc
    resources:
      default:
        type: alicloud:ens:Network
        properties:
          networkName: ${name}
          cidrBlock: 10.0.0.0/8
          ensRegionId: ${ensRegionId}
      defaultVswitch:
        type: alicloud:ens:Vswitch
        name: default
        properties:
          cidrBlock: 10.0.6.0/24
          vswitchName: ${name}
          ensRegionId: ${default.ensRegionId}
          networkId: ${default.id}
      defaultLoadBalancer:
        type: alicloud:ens:LoadBalancer
        name: default
        properties:
          loadBalancerName: ${name}
          vswitchId: ${defaultVswitch.id}
          paymentType: PayAsYouGo
          ensRegionId: ${defaultVswitch.ensRegionId}
          networkId: ${defaultVswitch.networkId}
          loadBalancerSpec: elb.s1.small
      defaultLoadBalancerUdpListener:
        type: alicloud:ens:LoadBalancerUdpListener
        name: default
        properties:
          loadBalancerId: ${defaultLoadBalancer.id}
          listenerPort: 53
          backendServerPort: 53
          description: example-udp-listener
          scheduler: wrr
          healthyThreshold: 2
          unhealthyThreshold: 2
          healthCheckConnectTimeout: 5
          healthCheckInterval: 2
          healthCheckConnectPort: 53
          healthCheckReq: hello
          healthCheckExp: rep
          eipTransmit: off
          establishedTimeout: 900
          status: Stopped
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_ens_network" "default" {
      network_name  = var.name
      cidr_block    = "10.0.0.0/8"
      ens_region_id = var.ensRegionId
    }
    resource "alicloud_ens_vswitch" "default" {
      cidr_block    = "10.0.6.0/24"
      vswitch_name  = var.name
      ens_region_id = alicloud_ens_network.default.ens_region_id
      network_id    = alicloud_ens_network.default.id
    }
    resource "alicloud_ens_loadbalancer" "default" {
      load_balancer_name = var.name
      vswitch_id         = alicloud_ens_vswitch.default.id
      payment_type       = "PayAsYouGo"
      ens_region_id      = alicloud_ens_vswitch.default.ens_region_id
      network_id         = alicloud_ens_vswitch.default.network_id
      load_balancer_spec = "elb.s1.small"
    }
    resource "alicloud_ens_loadbalancerudplistener" "default" {
      load_balancer_id             = alicloud_ens_loadbalancer.default.id
      listener_port                = 53
      backend_server_port          = 53
      description                  = "example-udp-listener"
      scheduler                    = "wrr"
      healthy_threshold            = 2
      unhealthy_threshold          = 2
      health_check_connect_timeout = 5
      health_check_interval        = 2
      health_check_connect_port    = 53
      health_check_req             = "hello"
      health_check_exp             = "rep"
      eip_transmit                 = "off"
      established_timeout          = 900
      status                       = "Stopped"
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    variable "ensRegionId" {
      type    = string
      default = "cn-chenzhou-telecom_unicom_cmcc"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create LoadBalancerUdpListener Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoadBalancerUdpListener(name: string, args: LoadBalancerUdpListenerArgs, opts?: CustomResourceOptions);
    @overload
    def LoadBalancerUdpListener(resource_name: str,
                                args: LoadBalancerUdpListenerArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadBalancerUdpListener(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                listener_port: Optional[int] = None,
                                load_balancer_id: Optional[str] = None,
                                health_check_exp: Optional[str] = None,
                                established_timeout: Optional[int] = None,
                                health_check_connect_port: Optional[int] = None,
                                health_check_connect_timeout: Optional[int] = None,
                                backend_server_port: Optional[int] = None,
                                health_check_interval: Optional[int] = None,
                                health_check_req: Optional[str] = None,
                                healthy_threshold: Optional[int] = None,
                                eip_transmit: Optional[str] = None,
                                description: Optional[str] = None,
                                scheduler: Optional[str] = None,
                                status: Optional[str] = None,
                                unhealthy_threshold: Optional[int] = None)
    func NewLoadBalancerUdpListener(ctx *Context, name string, args LoadBalancerUdpListenerArgs, opts ...ResourceOption) (*LoadBalancerUdpListener, error)
    public LoadBalancerUdpListener(string name, LoadBalancerUdpListenerArgs args, CustomResourceOptions? opts = null)
    public LoadBalancerUdpListener(String name, LoadBalancerUdpListenerArgs args)
    public LoadBalancerUdpListener(String name, LoadBalancerUdpListenerArgs args, CustomResourceOptions options)
    
    type: alicloud:ens:LoadBalancerUdpListener
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_ens_load_balancer_udp_listener" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args LoadBalancerUdpListenerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LoadBalancerUdpListenerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LoadBalancerUdpListenerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadBalancerUdpListenerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadBalancerUdpListenerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var loadBalancerUdpListenerResource = new AliCloud.Ens.LoadBalancerUdpListener("loadBalancerUdpListenerResource", new()
    {
        ListenerPort = 0,
        LoadBalancerId = "string",
        HealthCheckExp = "string",
        EstablishedTimeout = 0,
        HealthCheckConnectPort = 0,
        HealthCheckConnectTimeout = 0,
        BackendServerPort = 0,
        HealthCheckInterval = 0,
        HealthCheckReq = "string",
        HealthyThreshold = 0,
        EipTransmit = "string",
        Description = "string",
        Scheduler = "string",
        Status = "string",
        UnhealthyThreshold = 0,
    });
    
    example, err := ens.NewLoadBalancerUdpListener(ctx, "loadBalancerUdpListenerResource", &ens.LoadBalancerUdpListenerArgs{
    	ListenerPort:              pulumi.Int(0),
    	LoadBalancerId:            pulumi.String("string"),
    	HealthCheckExp:            pulumi.String("string"),
    	EstablishedTimeout:        pulumi.Int(0),
    	HealthCheckConnectPort:    pulumi.Int(0),
    	HealthCheckConnectTimeout: pulumi.Int(0),
    	BackendServerPort:         pulumi.Int(0),
    	HealthCheckInterval:       pulumi.Int(0),
    	HealthCheckReq:            pulumi.String("string"),
    	HealthyThreshold:          pulumi.Int(0),
    	EipTransmit:               pulumi.String("string"),
    	Description:               pulumi.String("string"),
    	Scheduler:                 pulumi.String("string"),
    	Status:                    pulumi.String("string"),
    	UnhealthyThreshold:        pulumi.Int(0),
    })
    
    resource "alicloud_ens_load_balancer_udp_listener" "loadBalancerUdpListenerResource" {
      lifecycle {
        create_before_destroy = true
      }
      listener_port                = 0
      load_balancer_id             = "string"
      health_check_exp             = "string"
      established_timeout          = 0
      health_check_connect_port    = 0
      health_check_connect_timeout = 0
      backend_server_port          = 0
      health_check_interval        = 0
      health_check_req             = "string"
      healthy_threshold            = 0
      eip_transmit                 = "string"
      description                  = "string"
      scheduler                    = "string"
      status                       = "string"
      unhealthy_threshold          = 0
    }
    
    var loadBalancerUdpListenerResource = new LoadBalancerUdpListener("loadBalancerUdpListenerResource", LoadBalancerUdpListenerArgs.builder()
        .listenerPort(0)
        .loadBalancerId("string")
        .healthCheckExp("string")
        .establishedTimeout(0)
        .healthCheckConnectPort(0)
        .healthCheckConnectTimeout(0)
        .backendServerPort(0)
        .healthCheckInterval(0)
        .healthCheckReq("string")
        .healthyThreshold(0)
        .eipTransmit("string")
        .description("string")
        .scheduler("string")
        .status("string")
        .unhealthyThreshold(0)
        .build());
    
    load_balancer_udp_listener_resource = alicloud.ens.LoadBalancerUdpListener("loadBalancerUdpListenerResource",
        listener_port=0,
        load_balancer_id="string",
        health_check_exp="string",
        established_timeout=0,
        health_check_connect_port=0,
        health_check_connect_timeout=0,
        backend_server_port=0,
        health_check_interval=0,
        health_check_req="string",
        healthy_threshold=0,
        eip_transmit="string",
        description="string",
        scheduler="string",
        status="string",
        unhealthy_threshold=0)
    
    const loadBalancerUdpListenerResource = new alicloud.ens.LoadBalancerUdpListener("loadBalancerUdpListenerResource", {
        listenerPort: 0,
        loadBalancerId: "string",
        healthCheckExp: "string",
        establishedTimeout: 0,
        healthCheckConnectPort: 0,
        healthCheckConnectTimeout: 0,
        backendServerPort: 0,
        healthCheckInterval: 0,
        healthCheckReq: "string",
        healthyThreshold: 0,
        eipTransmit: "string",
        description: "string",
        scheduler: "string",
        status: "string",
        unhealthyThreshold: 0,
    });
    
    type: alicloud:ens:LoadBalancerUdpListener
    properties:
        backendServerPort: 0
        description: string
        eipTransmit: string
        establishedTimeout: 0
        healthCheckConnectPort: 0
        healthCheckConnectTimeout: 0
        healthCheckExp: string
        healthCheckInterval: 0
        healthCheckReq: string
        healthyThreshold: 0
        listenerPort: 0
        loadBalancerId: string
        scheduler: string
        status: string
        unhealthyThreshold: 0
    

    LoadBalancerUdpListener Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LoadBalancerUdpListener resource accepts the following input properties:

    ListenerPort int
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    LoadBalancerId string
    The ID of the load balancer instance.
    BackendServerPort int
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    Description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    EipTransmit string
    Whether to enable EIP transparent transmission. Valid values:
    EstablishedTimeout int
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    HealthCheckConnectPort int
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    HealthCheckConnectTimeout int
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    HealthCheckExp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthCheckInterval int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    HealthCheckReq string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthyThreshold int
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    Scheduler string
    The scheduling algorithm. Valid values:
    Status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    UnhealthyThreshold int
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    ListenerPort int
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    LoadBalancerId string
    The ID of the load balancer instance.
    BackendServerPort int
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    Description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    EipTransmit string
    Whether to enable EIP transparent transmission. Valid values:
    EstablishedTimeout int
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    HealthCheckConnectPort int
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    HealthCheckConnectTimeout int
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    HealthCheckExp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthCheckInterval int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    HealthCheckReq string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthyThreshold int
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    Scheduler string
    The scheduling algorithm. Valid values:
    Status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    UnhealthyThreshold int
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    listener_port number
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    load_balancer_id string
    The ID of the load balancer instance.
    backend_server_port number
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eip_transmit string
    Whether to enable EIP transparent transmission. Valid values:
    established_timeout number
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    health_check_connect_port number
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    health_check_connect_timeout number
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    health_check_exp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    health_check_interval number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    health_check_req string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthy_threshold number
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    scheduler string
    The scheduling algorithm. Valid values:
    status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthy_threshold number
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    listenerPort Integer
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    loadBalancerId String
    The ID of the load balancer instance.
    backendServerPort Integer
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description String
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eipTransmit String
    Whether to enable EIP transparent transmission. Valid values:
    establishedTimeout Integer
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    healthCheckConnectPort Integer
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    healthCheckConnectTimeout Integer
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    healthCheckExp String
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthCheckInterval Integer
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    healthCheckReq String
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthyThreshold Integer
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    scheduler String
    The scheduling algorithm. Valid values:
    status String
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthyThreshold Integer
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    listenerPort number
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    loadBalancerId string
    The ID of the load balancer instance.
    backendServerPort number
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eipTransmit string
    Whether to enable EIP transparent transmission. Valid values:
    establishedTimeout number
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    healthCheckConnectPort number
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    healthCheckConnectTimeout number
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    healthCheckExp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthCheckInterval number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    healthCheckReq string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthyThreshold number
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    scheduler string
    The scheduling algorithm. Valid values:
    status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthyThreshold number
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    listener_port int
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    load_balancer_id str
    The ID of the load balancer instance.
    backend_server_port int
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description str
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eip_transmit str
    Whether to enable EIP transparent transmission. Valid values:
    established_timeout int
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    health_check_connect_port int
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    health_check_connect_timeout int
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    health_check_exp str
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    health_check_interval int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    health_check_req str
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthy_threshold int
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    scheduler str
    The scheduling algorithm. Valid values:
    status str
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthy_threshold int
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    listenerPort Number
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    loadBalancerId String
    The ID of the load balancer instance.
    backendServerPort Number
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description String
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eipTransmit String
    Whether to enable EIP transparent transmission. Valid values:
    establishedTimeout Number
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    healthCheckConnectPort Number
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    healthCheckConnectTimeout Number
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    healthCheckExp String
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthCheckInterval Number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    healthCheckReq String
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthyThreshold Number
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    scheduler String
    The scheduling algorithm. Valid values:
    status String
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthyThreshold Number
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoadBalancerUdpListener resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LoadBalancerUdpListener Resource

    Get an existing LoadBalancerUdpListener resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LoadBalancerUdpListenerState, opts?: CustomResourceOptions): LoadBalancerUdpListener
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backend_server_port: Optional[int] = None,
            description: Optional[str] = None,
            eip_transmit: Optional[str] = None,
            established_timeout: Optional[int] = None,
            health_check_connect_port: Optional[int] = None,
            health_check_connect_timeout: Optional[int] = None,
            health_check_exp: Optional[str] = None,
            health_check_interval: Optional[int] = None,
            health_check_req: Optional[str] = None,
            healthy_threshold: Optional[int] = None,
            listener_port: Optional[int] = None,
            load_balancer_id: Optional[str] = None,
            scheduler: Optional[str] = None,
            status: Optional[str] = None,
            unhealthy_threshold: Optional[int] = None) -> LoadBalancerUdpListener
    func GetLoadBalancerUdpListener(ctx *Context, name string, id IDInput, state *LoadBalancerUdpListenerState, opts ...ResourceOption) (*LoadBalancerUdpListener, error)
    public static LoadBalancerUdpListener Get(string name, Input<string> id, LoadBalancerUdpListenerState? state, CustomResourceOptions? opts = null)
    public static LoadBalancerUdpListener get(String name, Output<String> id, LoadBalancerUdpListenerState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:ens:LoadBalancerUdpListener    get:      id: ${id}
    import {
      to = alicloud_ens_load_balancer_udp_listener.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BackendServerPort int
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    Description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    EipTransmit string
    Whether to enable EIP transparent transmission. Valid values:
    EstablishedTimeout int
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    HealthCheckConnectPort int
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    HealthCheckConnectTimeout int
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    HealthCheckExp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthCheckInterval int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    HealthCheckReq string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthyThreshold int
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    ListenerPort int
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    LoadBalancerId string
    The ID of the load balancer instance.
    Scheduler string
    The scheduling algorithm. Valid values:
    Status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    UnhealthyThreshold int
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    BackendServerPort int
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    Description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    EipTransmit string
    Whether to enable EIP transparent transmission. Valid values:
    EstablishedTimeout int
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    HealthCheckConnectPort int
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    HealthCheckConnectTimeout int
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    HealthCheckExp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthCheckInterval int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    HealthCheckReq string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    HealthyThreshold int
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    ListenerPort int
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    LoadBalancerId string
    The ID of the load balancer instance.
    Scheduler string
    The scheduling algorithm. Valid values:
    Status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    UnhealthyThreshold int
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    backend_server_port number
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eip_transmit string
    Whether to enable EIP transparent transmission. Valid values:
    established_timeout number
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    health_check_connect_port number
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    health_check_connect_timeout number
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    health_check_exp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    health_check_interval number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    health_check_req string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthy_threshold number
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    listener_port number
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    load_balancer_id string
    The ID of the load balancer instance.
    scheduler string
    The scheduling algorithm. Valid values:
    status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthy_threshold number
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    backendServerPort Integer
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description String
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eipTransmit String
    Whether to enable EIP transparent transmission. Valid values:
    establishedTimeout Integer
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    healthCheckConnectPort Integer
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    healthCheckConnectTimeout Integer
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    healthCheckExp String
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthCheckInterval Integer
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    healthCheckReq String
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthyThreshold Integer
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    listenerPort Integer
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    loadBalancerId String
    The ID of the load balancer instance.
    scheduler String
    The scheduling algorithm. Valid values:
    status String
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthyThreshold Integer
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    backendServerPort number
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description string
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eipTransmit string
    Whether to enable EIP transparent transmission. Valid values:
    establishedTimeout number
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    healthCheckConnectPort number
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    healthCheckConnectTimeout number
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    healthCheckExp string
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthCheckInterval number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    healthCheckReq string
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthyThreshold number
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    listenerPort number
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    loadBalancerId string
    The ID of the load balancer instance.
    scheduler string
    The scheduling algorithm. Valid values:
    status string
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthyThreshold number
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    backend_server_port int
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description str
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eip_transmit str
    Whether to enable EIP transparent transmission. Valid values:
    established_timeout int
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    health_check_connect_port int
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    health_check_connect_timeout int
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    health_check_exp str
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    health_check_interval int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    health_check_req str
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthy_threshold int
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    listener_port int
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    load_balancer_id str
    The ID of the load balancer instance.
    scheduler str
    The scheduling algorithm. Valid values:
    status str
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthy_threshold int
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.
    backendServerPort Number
    The port used by the backend server of the load balancer instance. Valid values: 1 to 65535.
    description String
    The description of the listener. The description must be 1 to 80 characters in length and cannot start with http:// or https://.
    eipTransmit String
    Whether to enable EIP transparent transmission. Valid values:
    establishedTimeout Number
    The timeout period of the connection. Unit: seconds. Valid values: 10 to 900. Default value: 900.
    healthCheckConnectPort Number
    The port used for health checks. Valid values: 1 to 65535. If this parameter is not set, the backend server port (backendServerPort) is used.
    healthCheckConnectTimeout Number
    The amount of time to wait for a response from the health check. If the backend server does not respond within the specified time, the health check fails. Unit: seconds. Valid values: 1 to 300. Default value: 5. If the value of healthCheckConnectTimeout is smaller than the value of healthCheckInterval, healthCheckConnectTimeout is invalid and the timeout period is the value of healthCheckInterval.
    healthCheckExp String
    The expected response string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthCheckInterval Number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 2.
    healthCheckReq String
    The request string for the UDP listener health check. It can contain only letters and digits. Maximum length: 64 characters.
    healthyThreshold Number
    The number of consecutive successful health checks that must occur before a backend server is declared healthy (from fail to success). Valid values: 2 to 10. Default value: 3.
    listenerPort Number
    The frontend port used by the load balancer instance. Valid values: 1 to 65535. Ports 250, 4789, and 4790 are reserved and cannot be used.
    loadBalancerId String
    The ID of the load balancer instance.
    scheduler String
    The scheduling algorithm. Valid values:
    status String
    The status of the listener. Valid values:

    • Running: The listener is running.
    • Stopped: The listener is stopped.
    • Starting: The listener is starting.
    • Configuring: The listener is being configured.
    • Stopping: The listener is being stopped.
    unhealthyThreshold Number
    The number of consecutive failed health checks that must occur before a backend server is declared unhealthy (from success to fail). Valid values: 2 to 10. Default value: 3.

    Import

    ENS Load Balancer Udp Listener can be imported using the id, e.g.

    $ pulumi import alicloud:ens/loadBalancerUdpListener:LoadBalancerUdpListener example <load_balancer_id>:<listener_port>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v3.108.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial