import * as $dara from '@darabonba/typescript'; export declare class CreateListenerRequestCaCertificates extends $dara.Model { /** * @remarks * The CA certificate ID. * * > This parameter is required when **CaEnabled** is set to **true**. * * @example * 123157******* */ certificateId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateListenerRequestCertificates extends $dara.Model { /** * @remarks * The default certificate ID. Only one default server certificate is supported. * * > - This parameter is required when **ListenerProtocol** is set to **HTTPS** or **QUIC**. * > - To add more server certificates, call [AssociateAdditionalCertificatesWithListener](https://help.aliyun.com/document_detail/2254830.html) to configure additional certificates after the listener is created. * * @example * 103705******* */ certificateId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateListenerRequestDefaultActionsForwardGroupConfigServerGroupTuples extends $dara.Model { /** * @remarks * The ID of the destination server group to which requests are forwarded. * * This parameter is required. * * @example * sgp-8ilqs4axp6****** */ serverGroupId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateListenerRequestDefaultActionsForwardGroupConfig extends $dara.Model { /** * @remarks * The forwarding destination server group tuples. * * This parameter is required. */ serverGroupTuples?: CreateListenerRequestDefaultActionsForwardGroupConfigServerGroupTuples[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateListenerRequestDefaultActions extends $dara.Model { /** * @remarks * The configuration of the forwarding action. You can add up to 20 forwarding action configurations. * * This parameter is required. */ forwardGroupConfig?: CreateListenerRequestDefaultActionsForwardGroupConfig; /** * @remarks * The action type. You can add up to 1 action type. * * Valid values: **ForwardGroup**: forwards requests 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 CreateListenerRequestQuicConfig extends $dara.Model { /** * @remarks * The ID of the QUIC listener to be associated. This parameter is valid for HTTPS listeners. This parameter is required when **QuicUpgradeEnabled** is set to **true**. * * > 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 * Specifies whether to enable QUIC upgrade. Valid values: * - **true**: Enabled. * - **false** (default): Disabled. * * > Only HTTPS listeners support this parameter. * * @example * false */ quicUpgradeEnabled?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateListenerRequestTag extends $dara.Model { /** * @remarks * The tag key. The tag key can be up to 128 characters in length. It cannot start with aliyun or acs: and cannot contain http:// or https://. * * @example * env */ key?: string; /** * @remarks * The tag value. The tag value can be up to 128 characters in length. It cannot start with aliyun or acs: and cannot contain http:// or https://. * * @example * product */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateListenerRequestXForwardedForConfig extends $dara.Model { /** * @remarks * The custom header name. This parameter takes effect only when **XForwardedForClientCertClientVerifyEnabled** is set to **true**. * * The value 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 to retrieve the verification result of the client certificate that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false** (default): Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertClientVerifyEnabled?: boolean; /** * @remarks * The custom header name. This parameter takes effect only when **XForwardedForClientCertFingerprintEnabled** is set to **true**. * * The value 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 to retrieve the fingerprint of the client certificate that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false** (default): Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertFingerprintEnabled?: boolean; /** * @remarks * The custom header name. This parameter takes effect only when **XForwardedForClientCertIssuerDNEnabled** is set to **true**. * * The value 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 to retrieve the issuer information of the client certificate that accesses the load balancing instance. Valid values: * * - **true**: Enabled. * - **false** (default): Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertIssuerDNEnabled?: boolean; /** * @remarks * The custom header name. This parameter takes effect only when **XForwardedForClientCertSubjectDNEnabled** is set to **true**. * * The value 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 to retrieve the owner information of the client certificate that accesses the load balancing instance. Valid values: * - **true**: Enabled. * - **false** (default): Disabled. * * > Only HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientCertSubjectDNEnabled?: boolean; /** * @remarks * Specifies whether to allow ALB to look up the real client IP address in the X-Forwarded-For header. Valid values: * * - **true**: Enabled. * - **false** (default): 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 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 to retrieve the port of the client that accesses the load balancing instance. Valid values: * - **true**: Enabled. * - **false** (default): Disabled. * * > HTTP and HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientSrcPortEnabled?: boolean; /** * @remarks * Specifies whether to use the `X-Forwarded-For` header 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**, ALB retains the `X-Forwarded-For` header without additional processing before forwarding the request 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 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 mode for processing the `X-Forwarded-For` header. 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 before the request is forwarded to the backend server. * > 2. If you set this parameter to **remove**, the `X-Forwarded-For` header is removed before the request is forwarded to the backend server, regardless of whether the request contains the `X-Forwarded-For` header. * > 3. HTTP and HTTPS listeners support this parameter. * * @example * append */ XForwardedForProcessingMode?: string; /** * @remarks * Specifies whether to use the `X-Forwarded-Proto` header to retrieve the listener protocol of the load balancing instance. Valid values: * - **true**: Enabled. * - **false** (default): Disabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * false */ XForwardedForProtoEnabled?: boolean; /** * @remarks * Specifies whether to use the `SLB-ID` header to retrieve the load balancing instance ID. Valid values: * - **true**: Enabled. * - **false** (default): Disabled. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * false */ XForwardedForSLBIdEnabled?: boolean; /** * @remarks * Specifies whether to use the `X-Forwarded-Port` header to retrieve the listener port of the load balancing instance. Valid values: * - **true**: Enabled. * - **false** (default): 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 CreateListenerRequest extends $dara.Model { /** * @remarks * The list of CA certificates configured for the listener. Only one CA certificate is supported. */ caCertificates?: CreateListenerRequestCaCertificates[]; /** * @remarks * Specifies whether to enable mutual authentication. Valid values: * * - **true**: Enabled. * - **false** (default): Disabled. * * @example * false */ caEnabled?: boolean; /** * @remarks * The certificate list information. */ certificates?: CreateListenerRequestCertificates[]; /** * @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** of the API request as the **ClientToken**. The **RequestId** may be different for each API request. * * @example * 123e4567-e89b-12d3-a456-426655440000 */ clientToken?: string; /** * @remarks * The list of rule actions. * * This parameter is required. */ defaultActions?: CreateListenerRequestDefaultActions[]; /** * @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** (default): Enabled. * - **false**: Disabled. * * @example * true */ gzipEnabled?: boolean; /** * @remarks * Specifies whether to enable `HTTP/2`. Valid values: * - **true** (default): 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**. * * Default value: **15**. * * If no access request is received within the timeout period, load balancing temporarily breaks the current connection. When the next request arrives, a new connection is established. * * > You can submit a quota increase request to increase the idle connection timeout period to a maximum of 3600 seconds. * * @example * 3 */ idleTimeout?: number; /** * @remarks * The custom listener name. * * The name must be 2 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_). * * @example * HTTP_80 */ listenerDescription?: string; /** * @remarks * The frontend port that is used by the load balancing instance. * * Valid values: **1 to 65535**. * * This parameter is required. * * @example * 80 */ listenerPort?: number; /** * @remarks * The listener protocol. * * Valid values: **HTTP**, **HTTPS**, and **QUIC**. * * This parameter is required. * * @example * HTTP */ listenerProtocol?: string; /** * @remarks * The Application Load Balancing (ALB) instance ID. * * This parameter is required. * * @example * alb-n5qw04uq8vavfe**** */ loadBalancerId?: string; /** * @remarks * The configuration of the associated QUIC listener. */ quicConfig?: CreateListenerRequestQuicConfig; /** * @remarks * The request timeout period. Unit: seconds. * * Valid values: **1 to 600**. * * Default value: **60**. * * If no response is received from the backend server within the timeout period, load balancing sends an `HTTP 504` error code to the client. * * > You can submit a quota increase request to increase the request timeout period to a maximum of 3600 seconds. * * @example * 60 */ requestTimeout?: number; /** * @remarks * The security policy ID. System security policies and custom security policies are supported. * * Default value: **tls_cipher_policy_1_0** (system security policy). * * > Only HTTPS listeners support this parameter. * * @example * tls_cipher_policy_1_0 */ securityPolicyId?: string; /** * @remarks * The tags. */ tag?: CreateListenerRequestTag[]; /** * @remarks * The configuration of the XForward field. */ XForwardedForConfig?: CreateListenerRequestXForwardedForConfig; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }