import * as $dara from '@darabonba/typescript'; export declare class UpdateListenerAttributeRequestCaCertificates extends $dara.Model { /** * @remarks * The CA certificate ID. * * > This parameter is required when **CaEnabled** is set to **true**. * * @example * 123359****** */ certificateId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateListenerAttributeRequestCertificates extends $dara.Model { /** * @remarks * The default certificate ID. Only one default server certificate is supported. * * > - This parameter is required when the listener protocol type is **HTTPS** or **QUIC**. * > - To add more server certificates, invoke [AssociateAdditionalCertificatesWithListener](https://help.aliyun.com/document_detail/2254830.html) to configure extension certificates after the listener is created. * * @example * 123157****** */ certificateId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateListenerAttributeRequestDefaultActionsForwardGroupConfigServerGroupTuples extends $dara.Model { /** * @remarks * The ID of the destination server group to which requests are forwarded. * * This parameter is required. * * @example * sgp-i5qt20****** */ serverGroupId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateListenerAttributeRequestDefaultActionsForwardGroupConfig extends $dara.Model { /** * @remarks * The list of forwarding destination server group tuples. * * This parameter is required. */ serverGroupTuples?: UpdateListenerAttributeRequestDefaultActionsForwardGroupConfigServerGroupTuples[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateListenerAttributeRequestDefaultActions extends $dara.Model { /** * @remarks * The forwarding configuration for the action. This parameter is required and valid only when **Type** is set to **ForwardGroup**. You can add up to 20 forwarding action configurations. */ forwardGroupConfig?: UpdateListenerAttributeRequestDefaultActionsForwardGroupConfig; /** * @remarks * The action type. You can add up to one action type. * * Valid values: **ForwardGroup**, which indicates that requests are forwarded to multiple server groups. * * This parameter is required. * * @example * ForwardGroup */ type?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateListenerAttributeRequestQuicConfig 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 only 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-333 */ quicListenerId?: string; /** * @remarks * Specifies whether to enable QUIC upgrade. Valid values: * - **true**: enabled. * - **false**: disabled. * * > This parameter is valid only for HTTPS listeners. * * @example * false */ quicUpgradeEnabled?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateListenerAttributeRequestXForwardedForConfig extends $dara.Model { /** * @remarks * The custom header field name. This parameter takes effect only when **XForwardedForClientCertClientVerifyEnabled** is set to **true**. * * The name must be 1 to 40 characters in length, and can contain lowercase letters a to z, hyphens (-), underscores (_), and digits. * * > Only HTTPS listeners support this parameter. * * @example * test_client-verify-alias_123456 */ XForwardedForClientCertClientVerifyAlias?: string; /** * @remarks * Specifies whether to use the `X-Forwarded-Clientcert-clientverify` header field 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 * false */ XForwardedForClientCertClientVerifyEnabled?: boolean; /** * @remarks * The custom header field name. This parameter takes effect only when **XForwardedForClientCertFingerprintEnabled** is set to **true**. * * The name must be 1 to 40 characters in length, and can contain lowercase letters a to z, hyphens (-), underscores (_), and digits. * * > Only HTTPS listeners support this parameter. * * @example * test_finger-print-alias_123456 */ XForwardedForClientCertFingerprintAlias?: string; /** * @remarks * Specifies whether to use the `X-Forwarded-Clientcert-fingerprint` header field 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 * false */ XForwardedForClientCertFingerprintEnabled?: boolean; /** * @remarks * The custom header field name. This parameter takes effect only when **XForwardedForClientCertIssuerDNEnabled** is set to **true**. * * The name must be 1 to 40 characters in length, and can contain lowercase letters a to z, hyphens (-), underscores (_), and digits. * * > Only HTTPS listeners support this parameter. * * @example * test_issue-dn-alias_123456 */ XForwardedForClientCertIssuerDNAlias?: string; /** * @remarks * Specifies whether to use the `X-Forwarded-Clientcert-issuerdn` header field 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 * false */ XForwardedForClientCertIssuerDNEnabled?: boolean; /** * @remarks * The custom header field name. This parameter takes effect only when **XForwardedForClientCertSubjectDNEnabled** is set to **true**. * * The name must be 1 to 40 characters in length, and can contain lowercase letters a to z, hyphens (-), underscores (_), and digits. * * > Only HTTPS listeners support this parameter. * * @example * test_subject-dn-alias_123456 */ XForwardedForClientCertSubjectDNAlias?: string; /** * @remarks * Specifies whether to use the `X-Forwarded-Clientcert-subjectdn` header field 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 * false */ XForwardedForClientCertSubjectDNEnabled?: boolean; /** * @remarks * Specifies whether to allow ALB to retrieve the real client IP address from the X-Forwarded-For header field. Valid values: * * - **true**: enabled. * - **false**: disabled. * * > 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 field from right to left and selects the first IP address that is not in the trusted IP list as the real client IP address. This IP address is used for source IP-based rate limiting. * * @example * 10.1.1.0/24 */ XForwardedForClientSourceIpsTrusted?: string; /** * @remarks * Specifies whether to use the `X-Forwarded-Client-srcport` header field 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 * false */ XForwardedForClientSrcPortEnabled?: boolean; /** * @remarks * Specifies whether to use the `X-Forwarded-For` header field to retrieve the real IP address of the client. Valid values: * - **true** (default): enabled. * - **false**: disabled. * * > 1. If you set this parameter to **true**, **XForwardedForProcessingMode** defaults to **append** and can be changed to **remove**. * > 2. If you set this parameter to **false**, the `X-Forwarded-For` header field is retained 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 * Specifies whether to use the `X-Forwarded-Host` header field to retrieve the domain name of the client that accesses the load balancing instance. Valid values: * - **true**: enabled. * - **false** (default): disabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * false */ XForwardedForHostEnabled?: boolean; /** * @remarks * The processing mode for the `X-Forwarded-For` header field. This parameter takes effect only when **XForwardedForEnabled** is set to **true**. Valid values: * - **append** (default): append. * - **remove**: remove. * * > 1. If you set this parameter 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 you set this parameter to **remove**, the `X-Forwarded-For` header is removed before the request is sent to the backend server, regardless of whether the request contains the `X-Forwarded-For` header field. * > 3. HTTP and HTTPS listeners support this parameter. * * @example * append */ XForwardedForProcessingMode?: string; /** * @remarks * Specifies whether to use the `X-Forwarded-Proto` header field to retrieve the listener protocol of the load balancing instance. Valid values: * - **true**: enabled. * - **false**: disabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * false */ XForwardedForProtoEnabled?: boolean; /** * @remarks * Specifies whether to use the `SLB-ID` header field to retrieve the load balancing instance ID. Valid values: * - **true**: enabled. * - **false**: disabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * false */ XForwardedForSLBIdEnabled?: boolean; /** * @remarks * Specifies whether to use the `X-Forwarded-Port` header field to retrieve the listener port of the load balancing instance. Valid values: * - **true**: enabled. * - **false**: disabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * false */ XForwardedForSLBPortEnabled?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateListenerAttributeRequest extends $dara.Model { /** * @remarks * The CA certificate list. Only one CA certificate is supported. */ caCertificates?: UpdateListenerAttributeRequestCaCertificates[]; /** * @remarks * Specifies whether to enable mutual authentication. Valid values: * - **true**: enabled. * - **false**: disabled. * * @example * false */ caEnabled?: boolean; /** * @remarks * The certificate list. */ certificates?: UpdateListenerAttributeRequestCertificates[]; /** * @remarks * The client token that is used to ensure the idempotence of the request. * * You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. * * > If you do not specify this parameter, the system automatically uses the **RequestId** as the **ClientToken**. The **RequestId** may be different for each API request. * * @example * 5A2CFF0E-5718-45B5-9D4D-70B****** */ clientToken?: string; /** * @remarks * The list of default rule actions. */ defaultActions?: UpdateListenerAttributeRequestDefaultActions[]; /** * @remarks * Specifies whether to perform only a dry run, without performing the actual request. Valid values: * * - **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * * - **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, an `HTTP 2xx` status code is returned and the operation is performed. * * @example * false */ dryRun?: boolean; /** * @remarks * Specifies whether to enable Gzip compression to compress specific types of files. Valid values: * * - **true**: enabled. * - **false**: disabled. * * @example * true */ gzipEnabled?: boolean; /** * @remarks * Specifies whether to enable HTTP/2. Valid values: * - **true**: enabled. * - **false**: disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ http2Enabled?: boolean; /** * @remarks * The idle connection timeout period. Unit: seconds. Valid values: **1 to 600**. * * If no access request is received within the timeout period, load balancing temporarily breaks the current connection and restores the connection when the next request arrives. * * @example * 15 */ idleTimeout?: number; /** * @remarks * The custom listener name. * * The name must be 2 to 256 characters in length, and can contain letters, digits, Chinese characters, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-). * * @example * HTTP_80 */ listenerDescription?: string; /** * @remarks * The listener ID of the Application Load Balancing (ALB) instance. * * This parameter is required. * * @example * lsn-o4u54y73wq7b****** */ listenerId?: string; /** * @remarks * The configuration information when an associated QUIC listener is enabled. */ quicConfig?: UpdateListenerAttributeRequestQuicConfig; /** * @remarks * The request timeout period. Unit: seconds. Valid values: **1 to 600**. * * If no response is received from the backend server within the timeout period, load balancing returns an `HTTP 504` error code to the client. * * @example * 60 */ requestTimeout?: number; /** * @remarks * The security policy. System security policies and custom security policies are supported. * * > Only HTTPS listeners support this parameter. * * @example * tls_cipher_policy_1_0 */ securityPolicyId?: string; /** * @remarks * The configuration of the XForwardedFor feature. */ XForwardedForConfig?: UpdateListenerAttributeRequestXForwardedForConfig; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }