ListenerProps
Properties for defining a Listener
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-listener
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkalb"
&alicloudroscdkalb.ListenerProps {
DefaultActions: interface{},
ListenerPort: interface{},
ListenerProtocol: interface{},
LoadBalancerId: interface{},
CaCertificates: interface{},
CaEnabled: interface{},
Certificates: interface{},
GzipEnabled: interface{},
Http2Enabled: interface{},
IdleTimeout: interface{},
ListenerDescription: interface{},
ListenerStatus: interface{},
QuicConfig: interface{},
RequestTimeout: interface{},
SecurityPolicyId: interface{},
XForwardedForConfig: interface{},
}
Properties
Name | Type | Description |
---|---|---|
DefaultActions |
interface{} |
Property defaultActions: The actions of the rule. |
ListenerPort |
interface{} |
Property listenerPort: The frontend port that is used by the ALB instance. |
ListenerProtocol |
interface{} |
Property listenerProtocol: The listener protocol. |
LoadBalancerId |
interface{} |
Property loadBalancerId: The ID of the ALB instance. |
CaCertificates |
interface{} |
Property caCertificates: List of configured CA certificates for listener. |
CaEnabled |
interface{} |
Property caEnabled: Specifies whether to enable mutual authentication. |
Certificates |
interface{} |
Property certificates: The list of SSL certificates for listener. |
GzipEnabled |
interface{} |
Property gzipEnabled: Specifies whether to enable gzip compression to compress files of a specific type. |
Http2Enabled |
interface{} |
Property http2Enabled: Specifies whether to enable HTTP\/2. |
IdleTimeout |
interface{} |
Property idleTimeout: The timeout period of idle connections. |
ListenerDescription |
interface{} |
Property listenerDescription: The description of the listener. |
ListenerStatus |
interface{} |
Property listenerStatus: The status of the listener. |
QuicConfig |
interface{} |
Property quicConfig: Select a QUIC listener and associate it with the ALB instance. |
RequestTimeout |
interface{} |
Property requestTimeout: The timeout period of the request. |
SecurityPolicyId |
interface{} |
Property securityPolicyId: The ID of the security policy. |
XForwardedForConfig |
interface{} |
Property xForwardedForConfig: The configuration of the XForward field. |
DefaultActions
Required
DefaultActions interface{}
- Type: interface{}
Property defaultActions: The actions of the rule.
ListenerPort
Required
ListenerPort interface{}
- Type: interface{}
Property listenerPort: The frontend port that is used by the ALB instance.
Valid values: 1 to 65535.
ListenerProtocol
Required
ListenerProtocol interface{}
- Type: interface{}
Property listenerProtocol: The listener protocol.
Valid values: HTTP, HTTPS, and QUIC.
LoadBalancerId
Required
LoadBalancerId interface{}
- Type: interface{}
Property loadBalancerId: The ID of the ALB instance.
CaCertificates
Optional
CaCertificates interface{}
- Type: interface{}
Property caCertificates: List of configured CA certificates for listener.
CaEnabled
Optional
CaEnabled interface{}
- Type: interface{}
Property caEnabled: Specifies whether to enable mutual authentication.
Default false.
Certificates
Optional
Certificates interface{}
- Type: interface{}
Property certificates: The list of SSL certificates for listener.
GzipEnabled
Optional
GzipEnabled interface{}
- Type: interface{}
Property gzipEnabled: Specifies whether to enable gzip compression to compress files of a specific type.
Valid values: true and false. Default value: true.
Http2Enabled
Optional
Http2Enabled interface{}
- Type: interface{}
Property http2Enabled: Specifies whether to enable HTTP\/2.
Default value: on. Valid values: true and false. Default value: true. Note Only HTTPS listeners support this parameter.
IdleTimeout
Optional
IdleTimeout interface{}
- Type: interface{}
Property idleTimeout: The timeout period of idle connections.
Valid values: 1 to 180. Unit: seconds. Default value: 15. If no request is received within the specified timeout period, ALB closes the connection. ALB recreates the connection when a new connection request is received.
ListenerDescription
Optional
ListenerDescription interface{}
- Type: interface{}
Property listenerDescription: The description of the listener.
The description must be 2 to 256 characters in length.
ListenerStatus
Optional
ListenerStatus interface{}
- Type: interface{}
Property listenerStatus: The status of the listener.
QuicConfig
Optional
QuicConfig interface{}
- Type: interface{}
Property quicConfig: Select a QUIC listener and associate it with the ALB instance.
RequestTimeout
Optional
RequestTimeout interface{}
- Type: interface{}
Property requestTimeout: The timeout period of the request.
Valid values: 1 to 180. Unit: seconds. Default value: 60. If no response is received from the backend server during the request timeout period, ALB sends an HTTP 504 error code to the client.
SecurityPolicyId
Optional
SecurityPolicyId interface{}
- Type: interface{}
Property securityPolicyId: The ID of the security policy.
System security policies and custom security policies are supported. Default value: tls_cipher_policy_1_0. This value indicates a system security policy. Note Only HTTPS listeners support this parameter.
XForwardedForConfig
Optional
XForwardedForConfig interface{}
- Type: interface{}
Property xForwardedForConfig: The configuration of the XForward field.