// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListListenersResponseBodyListenersDefaultActionsForwardGroupConfigServerGroupTuples extends $dara.Model { /** * @remarks * The ID of the destination server group to which requests are forwarded. * * @example * sgp-i5qt20****** */ serverGroupId?: string; static names(): { [key: string]: string } { return { serverGroupId: 'ServerGroupId', }; } static types(): { [key: string]: any } { return { serverGroupId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListenersDefaultActionsForwardGroupConfig extends $dara.Model { /** * @remarks * The destination server groups to which requests are forwarded. */ serverGroupTuples?: ListListenersResponseBodyListenersDefaultActionsForwardGroupConfigServerGroupTuples[]; static names(): { [key: string]: string } { return { serverGroupTuples: 'ServerGroupTuples', }; } static types(): { [key: string]: any } { return { serverGroupTuples: { 'type': 'array', 'itemType': ListListenersResponseBodyListenersDefaultActionsForwardGroupConfigServerGroupTuples }, }; } validate() { if(Array.isArray(this.serverGroupTuples)) { $dara.Model.validateArray(this.serverGroupTuples); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListenersDefaultActions extends $dara.Model { /** * @remarks * The configuration of the forwarding rule action. This parameter is valid when the action type is **ForwardGroup**. */ forwardGroupConfig?: ListListenersResponseBodyListenersDefaultActionsForwardGroupConfig; /** * @remarks * The action type. Value: **ForwardGroup**, which indicates that requests are forwarded to multiple server groups. * * @example * ForwardGroup */ type?: string; static names(): { [key: string]: string } { return { forwardGroupConfig: 'ForwardGroupConfig', type: 'Type', }; } static types(): { [key: string]: any } { return { forwardGroupConfig: ListListenersResponseBodyListenersDefaultActionsForwardGroupConfig, type: 'string', }; } validate() { if(this.forwardGroupConfig && typeof (this.forwardGroupConfig as any).validate === 'function') { (this.forwardGroupConfig as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListenersLogConfigAccessLogTracingConfig extends $dara.Model { /** * @remarks * Indicates whether Xtrace is enabled. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > You can set this parameter to **true** only when the instance access log switch **AccessLogEnabled** is turned on. * * @example * true */ tracingEnabled?: boolean; /** * @remarks * The sampling rate of Xtrace. Valid values: **1 to 10000**. * * > This value takes effect only when **TracingEnabled** is set to **true**. * * @example * 100 */ tracingSample?: number; /** * @remarks * The Xtrace type. The valid value is **Zipkin**. * * > This value takes effect only when **TracingEnabled** is set to **true**. * * @example * Zipkin */ tracingType?: string; static names(): { [key: string]: string } { return { tracingEnabled: 'TracingEnabled', tracingSample: 'TracingSample', tracingType: 'TracingType', }; } static types(): { [key: string]: any } { return { tracingEnabled: 'boolean', tracingSample: 'number', tracingType: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListenersLogConfig extends $dara.Model { /** * @remarks * Indicates whether access logs carry custom headers. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * @example * true */ accessLogRecordCustomizedHeadersEnabled?: boolean; /** * @remarks * The Xtrace configuration for access logs. */ accessLogTracingConfig?: ListListenersResponseBodyListenersLogConfigAccessLogTracingConfig; static names(): { [key: string]: string } { return { accessLogRecordCustomizedHeadersEnabled: 'AccessLogRecordCustomizedHeadersEnabled', accessLogTracingConfig: 'AccessLogTracingConfig', }; } static types(): { [key: string]: any } { return { accessLogRecordCustomizedHeadersEnabled: 'boolean', accessLogTracingConfig: ListListenersResponseBodyListenersLogConfigAccessLogTracingConfig, }; } validate() { if(this.accessLogTracingConfig && typeof (this.accessLogTracingConfig as any).validate === 'function') { (this.accessLogTracingConfig as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListenersQuicConfig extends $dara.Model { /** * @remarks * The ID of the QUIC listener to be associated. This parameter is required when **QuicUpgradeEnabled** is set to **true**. This parameter is valid for HTTPS listeners. * * > The original listener and the associated QUIC listener must belong to the same ALB instance, and the QUIC listener must not have been previously associated. * * @example * lsn-o4u54y73wq7b****** */ quicListenerId?: string; /** * @remarks * Indicates whether QUIC upgrade is enabled. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > This parameter is valid only for HTTPS listeners. * * @example * true */ quicUpgradeEnabled?: boolean; static names(): { [key: string]: string } { return { quicListenerId: 'QuicListenerId', quicUpgradeEnabled: 'QuicUpgradeEnabled', }; } static types(): { [key: string]: any } { return { quicListenerId: 'string', quicUpgradeEnabled: 'boolean', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListenersTags extends $dara.Model { /** * @remarks * The tag key. The tag key can be up to 128 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://. * * @example * env */ key?: string; /** * @remarks * The tag value. The tag value can be up to 128 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://. * * @example * product */ value?: string; static names(): { [key: string]: string } { return { key: 'Key', value: 'Value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListenersXForwardedForConfig extends $dara.Model { /** * @remarks * The custom header field name. This value takes effect only when **XForwardedForClientCertClientVerifyEnabled** is set to **true**. Otherwise, this value does not take effect. * * Value constraints: 1 to 40 characters in length. Lowercase letters a-z, digits, hyphens (-), and underscores (_) are supported. * * > Only HTTPS listeners support this parameter. * * @example * test_client-verify-alias_123456 */ XForwardedForClientCertClientVerifyAlias?: string; /** * @remarks * Indicates whether the `X-Forwarded-Clientcert-clientverify` header field is used to retrieve the verification result of the client certificate that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertClientVerifyEnabled?: boolean; /** * @remarks * The custom header name. This value takes effect only when **XForwardedForClientCertFingerprintEnabled** is set to **true**. * * Value constraints: 1 to 40 characters in length. Lowercase letters a-z, digits, hyphens (-), and underscores (_) are supported. * * > Only HTTPS listeners support this parameter. * * @example * test_finger-print-alias_123456 */ XForwardedForClientCertFingerprintAlias?: string; /** * @remarks * Indicates whether the `X-Forwarded-Clientcert-fingerprint` header field is used to retrieve the fingerprint of the client certificate that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertFingerprintEnabled?: boolean; /** * @remarks * The custom header name. This value takes effect only when **XForwardedForClientCertIssuerDNEnabled** is set to **true**. * * Value constraints: 1 to 40 characters in length. Lowercase letters a-z, digits, hyphens (-), and underscores (_) are supported. * * > Only HTTPS listeners support this parameter. * * @example * test_issue-dn-alias_123456 */ XForwardedForClientCertIssuerDNAlias?: string; /** * @remarks * Indicates whether the `X-Forwarded-Clientcert-issuerdn` header field is used to retrieve the issuer information of the client certificate that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertIssuerDNEnabled?: boolean; /** * @remarks * The custom header name. This value takes effect only when **XForwardedForClientCertSubjectDNEnabled** is set to **true**. * * Value constraints: 1 to 40 characters in length. Lowercase letters a-z, digits, hyphens (-), and underscores (_) are supported. * * > Only HTTPS listeners support this parameter. * * @example * test_subject-dn-alias_123456 */ XForwardedForClientCertSubjectDNAlias?: string; /** * @remarks * Indicates whether the `X-Forwarded-Clientcert-subjectdn` header field is used to retrieve the owner information of the client certificate that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertSubjectDNEnabled?: boolean; /** * @remarks * Indicates whether ALB is allowed to look up the originating client IP address from the X-Forwarded-For header. Valid values: * * - **true**: Enabled. * * - **false**: Not enabled. * * > HTTP and HTTPS listeners support this parameter. * * @example * false */ XForwardedForClientSourceIpsEnabled?: boolean; /** * @remarks * The trusted proxy IP addresses. * * Application Load Balancing (ALB) traverses the `X-Forwarded-For` header from right to left and selects the first IP address that is not in the trusted IP list as the originating client IP address. This IP address is used for source IP-based rate limiting. * * @example * 10.1.1.0/24 */ XForwardedForClientSourceIpsTrusted?: string; /** * @remarks * Indicates whether the `X-Forwarded-Client-Port` header field is used to retrieve the port of the client that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > HTTP and HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientSrcPortEnabled?: boolean; /** * @remarks * Indicates whether the `X-Forwarded-For` header field is used to retrieve the originating IP address of the client. Valid values: * - **true** (default): Enabled. * - **false**: Disabled. * * > 1. If set to **true**, **XForwardedForProcessingMode** defaults to **append** and can be changed to **remove**. * > 2. If set to **false**, the `X-Forwarded-For` header field is preserved without additional processing before the request is sent to the backend server. * > 3. HTTP and HTTPS listeners support this parameter. * * @example * true */ XForwardedForEnabled?: boolean; /** * @remarks * Indicates whether the `X-Forwarded-Host` header is used to retrieve the domain name of the client that accesses the load balancing instance. Valid values: * - **true**: Enabled. * - **false** (default): Not enabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * false */ XForwardedForHostEnabled?: boolean; /** * @remarks * The mode for processing the `X-Forwarded-For` header field. This value takes effect only when **XForwardedForEnabled** is set to **true**. Valid values: * - **append** (default): Append. * - **remove**: Remove. * * > 1. If set to **append**, the last-hop IP address is appended to the `X-Forwarded-For` header field before the request is sent to the backend server. * > 2. If set to **remove**, the `X-Forwarded-For` header is removed before the request is sent to the backend server, regardless of whether the request carries the `X-Forwarded-For` header field. * > 3. HTTP and HTTPS listeners support this parameter. * * @example * append */ XForwardedForProcessingMode?: string; /** * @remarks * Indicates whether the `X-Forwarded-Proto` header is used to retrieve the listener protocol of the load balancing instance. Valid values: * * - **true**: Enabled. * - **false**: Not enabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * true */ XForwardedForProtoEnabled?: boolean; /** * @remarks * Indicates whether the `SLB-ID` header is used to retrieve the load balancing instance ID. Valid values: * * - **true**: Enabled. * - **false**: Not enabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * true */ XForwardedForSLBIdEnabled?: boolean; /** * @remarks * Indicates whether the `X-Forwarded-Port` header is used to retrieve the listener port of the load balancing instance. Valid values: * * - **true**: Enabled. * - **false**: Not enabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * true */ XForwardedForSLBPortEnabled?: boolean; static names(): { [key: string]: string } { return { XForwardedForClientCertClientVerifyAlias: 'XForwardedForClientCertClientVerifyAlias', XForwardedForClientCertClientVerifyEnabled: 'XForwardedForClientCertClientVerifyEnabled', XForwardedForClientCertFingerprintAlias: 'XForwardedForClientCertFingerprintAlias', XForwardedForClientCertFingerprintEnabled: 'XForwardedForClientCertFingerprintEnabled', XForwardedForClientCertIssuerDNAlias: 'XForwardedForClientCertIssuerDNAlias', XForwardedForClientCertIssuerDNEnabled: 'XForwardedForClientCertIssuerDNEnabled', XForwardedForClientCertSubjectDNAlias: 'XForwardedForClientCertSubjectDNAlias', XForwardedForClientCertSubjectDNEnabled: 'XForwardedForClientCertSubjectDNEnabled', XForwardedForClientSourceIpsEnabled: 'XForwardedForClientSourceIpsEnabled', XForwardedForClientSourceIpsTrusted: 'XForwardedForClientSourceIpsTrusted', XForwardedForClientSrcPortEnabled: 'XForwardedForClientSrcPortEnabled', XForwardedForEnabled: 'XForwardedForEnabled', XForwardedForHostEnabled: 'XForwardedForHostEnabled', XForwardedForProcessingMode: 'XForwardedForProcessingMode', XForwardedForProtoEnabled: 'XForwardedForProtoEnabled', XForwardedForSLBIdEnabled: 'XForwardedForSLBIdEnabled', XForwardedForSLBPortEnabled: 'XForwardedForSLBPortEnabled', }; } static types(): { [key: string]: any } { return { XForwardedForClientCertClientVerifyAlias: 'string', XForwardedForClientCertClientVerifyEnabled: 'boolean', XForwardedForClientCertFingerprintAlias: 'string', XForwardedForClientCertFingerprintEnabled: 'boolean', XForwardedForClientCertIssuerDNAlias: 'string', XForwardedForClientCertIssuerDNEnabled: 'boolean', XForwardedForClientCertSubjectDNAlias: 'string', XForwardedForClientCertSubjectDNEnabled: 'boolean', XForwardedForClientSourceIpsEnabled: 'boolean', XForwardedForClientSourceIpsTrusted: 'string', XForwardedForClientSrcPortEnabled: 'boolean', XForwardedForEnabled: 'boolean', XForwardedForHostEnabled: 'boolean', XForwardedForProcessingMode: 'string', XForwardedForProtoEnabled: 'boolean', XForwardedForSLBIdEnabled: 'boolean', XForwardedForSLBPortEnabled: 'boolean', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBodyListeners extends $dara.Model { /** * @remarks * The list of default rule actions. */ defaultActions?: ListListenersResponseBodyListenersDefaultActions[]; /** * @remarks * Indicates whether Gzip compression is enabled to compress specific file types. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * @example * false */ gzipEnabled?: boolean; /** * @remarks * Indicates whether HTTP/2 is enabled. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * > Only HTTPS listeners support this parameter. * * @example * false */ http2Enabled?: boolean; /** * @remarks * The connection idle timeout period. Unit: seconds. Valid values: **1 to 60**. * * If no access request is accepted within the timeout period, load balancing temporarily breaks the current connection and re-establishes a new connection when the next request is accepted. * * @example * 3 */ idleTimeout?: number; /** * @remarks * The custom listener name. * * @example * HTTP_80 */ listenerDescription?: string; /** * @remarks * The listener ID. * * @example * lsn-o4u34y73wq7b****** */ listenerId?: string; /** * @remarks * The frontend port used by the Application Load Balancing (ALB) instance. Valid values: **1 to 65535**. * * @example * 80 */ listenerPort?: number; /** * @remarks * The listener protocol. Valid values: * * - **HTTP**: Protocol Type is HTTP. * - **HTTPS**: Protocol Type is HTTPS. * - **QUIC**: Protocol Type is QUIC. * * @example * HTTP */ listenerProtocol?: string; /** * @remarks * The status of the listener. Valid values: * * - **Provisioning**: Being created. * * - **Running**: Running. * * - **Configuring**: Being configured. * * - **Stopped**: Stopped. * * @example * Running */ listenerStatus?: string; /** * @remarks * The Application Load Balancing (ALB) instance ID. * * @example * alb-bd6oylbckp6k9x**** */ loadBalancerId?: string; /** * @remarks * The log configuration. */ logConfig?: ListListenersResponseBodyListenersLogConfig; /** * @remarks * The configuration for associating a QUIC listener. */ quicConfig?: ListListenersResponseBodyListenersQuicConfig; /** * @remarks * The request timeout period. Unit: seconds. Valid values: **1 to 180**. * * If no response is received from the backend server within the timeout period, load balancing stops waiting and returns an `HTTP 504` error code to the client. * * @example * 34 */ requestTimeout?: number; /** * @remarks * The security policy. * * > Only HTTPS listeners support this parameter. * * @example * tls_cipher_policy_1_1 */ securityPolicyId?: string; /** * @remarks * The tags. */ tags?: ListListenersResponseBodyListenersTags[]; /** * @remarks * The `XForward` header field configuration. */ XForwardedForConfig?: ListListenersResponseBodyListenersXForwardedForConfig; static names(): { [key: string]: string } { return { defaultActions: 'DefaultActions', gzipEnabled: 'GzipEnabled', http2Enabled: 'Http2Enabled', idleTimeout: 'IdleTimeout', listenerDescription: 'ListenerDescription', listenerId: 'ListenerId', listenerPort: 'ListenerPort', listenerProtocol: 'ListenerProtocol', listenerStatus: 'ListenerStatus', loadBalancerId: 'LoadBalancerId', logConfig: 'LogConfig', quicConfig: 'QuicConfig', requestTimeout: 'RequestTimeout', securityPolicyId: 'SecurityPolicyId', tags: 'Tags', XForwardedForConfig: 'XForwardedForConfig', }; } static types(): { [key: string]: any } { return { defaultActions: { 'type': 'array', 'itemType': ListListenersResponseBodyListenersDefaultActions }, gzipEnabled: 'boolean', http2Enabled: 'boolean', idleTimeout: 'number', listenerDescription: 'string', listenerId: 'string', listenerPort: 'number', listenerProtocol: 'string', listenerStatus: 'string', loadBalancerId: 'string', logConfig: ListListenersResponseBodyListenersLogConfig, quicConfig: ListListenersResponseBodyListenersQuicConfig, requestTimeout: 'number', securityPolicyId: 'string', tags: { 'type': 'array', 'itemType': ListListenersResponseBodyListenersTags }, XForwardedForConfig: ListListenersResponseBodyListenersXForwardedForConfig, }; } validate() { if(Array.isArray(this.defaultActions)) { $dara.Model.validateArray(this.defaultActions); } if(this.logConfig && typeof (this.logConfig as any).validate === 'function') { (this.logConfig as any).validate(); } if(this.quicConfig && typeof (this.quicConfig as any).validate === 'function') { (this.quicConfig as any).validate(); } if(Array.isArray(this.tags)) { $dara.Model.validateArray(this.tags); } if(this.XForwardedForConfig && typeof (this.XForwardedForConfig as any).validate === 'function') { (this.XForwardedForConfig as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersResponseBody extends $dara.Model { /** * @remarks * The list of Application Load Balancing (ALB) listeners. */ listeners?: ListListenersResponseBodyListeners[]; /** * @remarks * The maximum number of records returned for this request. * * @example * 50 */ maxResults?: number; /** * @remarks * The position from which the current call starts reading. An empty value indicates that all data has been read. * * @example * FFmyTO70tTpLG6I3FmYAXGKPd**** */ nextToken?: string; /** * @remarks * The request ID. * * @example * 365F4154-92F6-4AE4-92F8-7FF3****** */ requestId?: string; /** * @remarks * The total number of entries that match the request conditions. * * @example * 1000 */ totalCount?: number; static names(): { [key: string]: string } { return { listeners: 'Listeners', maxResults: 'MaxResults', nextToken: 'NextToken', requestId: 'RequestId', totalCount: 'TotalCount', }; } static types(): { [key: string]: any } { return { listeners: { 'type': 'array', 'itemType': ListListenersResponseBodyListeners }, maxResults: 'number', nextToken: 'string', requestId: 'string', totalCount: 'number', }; } validate() { if(Array.isArray(this.listeners)) { $dara.Model.validateArray(this.listeners); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }