Skip to content

ListenerProps

Properties for defining a Listener.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-nlb-listener

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdknlb"
&alicloudroscdknlb.ListenerProps {
    ListenerPort: interface{},
    ListenerProtocol: interface{},
    LoadBalancerId: interface{},
    AlpnEnabled: interface{},
    AlpnPolicy: interface{},
    CaCertificateIds: interface{},
    CaEnabled: interface{},
    CertificateIds: interface{},
    Cps: interface{},
    Enable: interface{},
    EndPort: interface{},
    IdleTimeout: interface{},
    ListenerDescription: interface{},
    Mss: interface{},
    ProxyProtocolEnabled: interface{},
    ProxyProtocolV2Config: interface{},
    SecSensorEnabled: interface{},
    SecurityPolicyId: interface{},
    ServerGroupId: interface{},
    ServerGroupTuples: interface{},
    StartPort: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdknlb.RosListener.TagsProperty,
}

Properties

Name Type Description
ListenerPort interface{} Property listenerPort: Port of the listener,[0, 65535] the portRange setting need 0.
ListenerProtocol interface{} Property listenerProtocol: Listening protocol.
LoadBalancerId interface{} Property loadBalancerId: ID of the LoadBalancer.
AlpnEnabled interface{} Property alpnEnabled: undefined.
AlpnPolicy interface{} Property alpnPolicy: Proxy of alpn.
CaCertificateIds interface{} Property caCertificateIds: List of the ca certificate ids.
CaEnabled interface{} Property caEnabled: Whether to open CA.
CertificateIds interface{} Property certificateIds: List of the certificate ids.
Cps interface{} Property cps: New connection rate limit of Instance.
Enable interface{} Property enable: Whether to start listener or not.
EndPort interface{} Property endPort: EndPort of the portRange.
IdleTimeout interface{} Property idleTimeout: Specifies the connection idle timeout.
ListenerDescription interface{} Property listenerDescription: Description of the listener, [2, 256] characters.
Mss interface{} Property mss: Max length of the TCP packet.
ProxyProtocolEnabled interface{} Property proxyProtocolEnabled: Whether to enable ppv2 function.
ProxyProtocolV2Config interface{} Property proxyProtocolV2Config: ProxyProtocolV2Config of the listener.
SecSensorEnabled interface{} Property secSensorEnabled: Whether to enable the second-level monitoring function.
SecurityPolicyId interface{} Property securityPolicyId: Only valid for TcpSSL protocol monitoring.
ServerGroupId interface{} Property serverGroupId: ID of the ServerGroup.
ServerGroupTuples interface{} Property serverGroupTuples: Multi-server group list.
StartPort interface{} Property startPort: StartPort of the portRange.
Tags *[]TagsProperty Property tags: Tags to attach to instance.

ListenerPortRequired

ListenerPort interface{}
  • Type: interface{}

Property listenerPort: Port of the listener,[0, 65535] the portRange setting need 0.


ListenerProtocolRequired

ListenerProtocol interface{}
  • Type: interface{}

Property listenerProtocol: Listening protocol.

Values: TCP, UDP, or TCPSSL.


LoadBalancerIdRequired

LoadBalancerId interface{}
  • Type: interface{}

Property loadBalancerId: ID of the LoadBalancer.


AlpnEnabledOptional

AlpnEnabled interface{}
  • Type: interface{}

Property alpnEnabled: undefined.


AlpnPolicyOptional

AlpnPolicy interface{}
  • Type: interface{}

Property alpnPolicy: Proxy of alpn.


CaCertificateIdsOptional

CaCertificateIds interface{}
  • Type: interface{}

Property caCertificateIds: List of the ca certificate ids.


CaEnabledOptional

CaEnabled interface{}
  • Type: interface{}

Property caEnabled: Whether to open CA.


CertificateIdsOptional

CertificateIds interface{}
  • Type: interface{}

Property certificateIds: List of the certificate ids.


CpsOptional

Cps interface{}
  • Type: interface{}

Property cps: New connection rate limit of Instance.


EnableOptional

Enable interface{}
  • Type: interface{}

Property enable: Whether to start listener or not.

Default True.


EndPortOptional

EndPort interface{}
  • Type: interface{}

Property endPort: EndPort of the portRange.


IdleTimeoutOptional

IdleTimeout interface{}
  • Type: interface{}

Property idleTimeout: Specifies the connection idle timeout.


ListenerDescriptionOptional

ListenerDescription interface{}
  • Type: interface{}

Property listenerDescription: Description of the listener, [2, 256] characters.


MssOptional

Mss interface{}
  • Type: interface{}

Property mss: Max length of the TCP packet.


ProxyProtocolEnabledOptional

ProxyProtocolEnabled interface{}
  • Type: interface{}

Property proxyProtocolEnabled: Whether to enable ppv2 function.


ProxyProtocolV2ConfigOptional

ProxyProtocolV2Config interface{}
  • Type: interface{}

Property proxyProtocolV2Config: ProxyProtocolV2Config of the listener.


SecSensorEnabledOptional

SecSensorEnabled interface{}
  • Type: interface{}

Property secSensorEnabled: Whether to enable the second-level monitoring function.


SecurityPolicyIdOptional

SecurityPolicyId interface{}
  • Type: interface{}

Property securityPolicyId: Only valid for TcpSSL protocol monitoring.


ServerGroupIdOptional

ServerGroupId interface{}
  • Type: interface{}

Property serverGroupId: ID of the ServerGroup.


ServerGroupTuplesOptional

ServerGroupTuples interface{}
  • Type: interface{}

Property serverGroupTuples: Multi-server group list.

When the number of destination server groups is 1, the default value is 100 if no weight is specified. When the number of destination server groups is greater than 1, the user needs to specify the weight value.


StartPortOptional

StartPort interface{}
  • Type: interface{}

Property startPort: StartPort of the portRange.


TagsOptional

Tags *[]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.