// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class GetListenerAttributeResponseBodyAclConfigAclRelations extends $dara.Model { /** * @remarks * The ID of the access control group associated with the listener. * * @example * acl-doc**** */ aclId?: string; /** * @remarks * The status of the ACL-listener association. Valid values: * * - **Associating**: The ACL is being associated. * * - **Associated**: The ACL is associated. * * - **Dissociating**: The ACL is being disassociated. * * @example * Associating */ status?: string; static names(): { [key: string]: string } { return { aclId: 'AclId', status: 'Status', }; } static types(): { [key: string]: any } { return { aclId: 'string', status: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetListenerAttributeResponseBodyAclConfig extends $dara.Model { /** * @remarks * The list of access control group IDs associated with the listener. */ aclRelations?: GetListenerAttributeResponseBodyAclConfigAclRelations[]; /** * @remarks * The type of access control. Valid values: * * - **White**: Only requests from the IP addresses or CIDR blocks settings in the selected access control policy group are forwarded. Whitelists are applicable to scenarios in which you want to allow only specific IP addresses to access your application. Enabling a whitelist poses some risks. After a whitelist is enabled, only the IP addresses in the whitelist can access the load balancing listener. * * If a whitelist is enabled but no IP address is added to the access control policy group, the load balancing listener forwards all requests. * * - **Black**: All requests from the IP addresses or CIDR blocks settings in the selected access control policy group are blocked. Blacklists are applicable to scenarios in which you want to block access from specific IP addresses. * * If a blacklist is enabled but no IP address is added to the access control policy group, the load balancing listener forwards all requests. * * @example * White */ aclType?: string; static names(): { [key: string]: string } { return { aclRelations: 'AclRelations', aclType: 'AclType', }; } static types(): { [key: string]: any } { return { aclRelations: { 'type': 'array', 'itemType': GetListenerAttributeResponseBodyAclConfigAclRelations }, aclType: 'string', }; } validate() { if(Array.isArray(this.aclRelations)) { $dara.Model.validateArray(this.aclRelations); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetListenerAttributeResponseBodyCaCertificates extends $dara.Model { /** * @remarks * The CA certificate ID. * * @example * 139a00***** */ certificateId?: string; /** * @remarks * Indicates whether the certificate is the default certificate. Valid values: * * - **true**: Yes. * * - **false**: No. * * @example * true */ isDefault?: boolean; /** * @remarks * The certificate status. * * @example * Associated */ status?: string; static names(): { [key: string]: string } { return { certificateId: 'CertificateId', isDefault: 'IsDefault', status: 'Status', }; } static types(): { [key: string]: any } { return { certificateId: 'string', isDefault: 'boolean', status: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetListenerAttributeResponseBodyCertificates extends $dara.Model { /** * @remarks * The certificate ID. Only server certificates are supported. * * @example * 123157******* */ certificateId?: string; static names(): { [key: string]: string } { return { certificateId: 'CertificateId', }; } static types(): { [key: string]: any } { return { certificateId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetListenerAttributeResponseBodyDefaultActionsForwardGroupConfigServerGroupTuples 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 GetListenerAttributeResponseBodyDefaultActionsForwardGroupConfig extends $dara.Model { /** * @remarks * The destination server groups to which requests are forwarded. */ serverGroupTuples?: GetListenerAttributeResponseBodyDefaultActionsForwardGroupConfigServerGroupTuples[]; static names(): { [key: string]: string } { return { serverGroupTuples: 'ServerGroupTuples', }; } static types(): { [key: string]: any } { return { serverGroupTuples: { 'type': 'array', 'itemType': GetListenerAttributeResponseBodyDefaultActionsForwardGroupConfigServerGroupTuples }, }; } validate() { if(Array.isArray(this.serverGroupTuples)) { $dara.Model.validateArray(this.serverGroupTuples); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetListenerAttributeResponseBodyDefaultActions extends $dara.Model { /** * @remarks * The configuration of the forwarding action. This parameter is valid when the type is **ForwardGroup**. */ forwardGroupConfig?: GetListenerAttributeResponseBodyDefaultActionsForwardGroupConfig; /** * @remarks * The action type. * * Valid values: **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: GetListenerAttributeResponseBodyDefaultActionsForwardGroupConfig, 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 GetListenerAttributeResponseBodyLogConfigAccessLogTracingConfig extends $dara.Model { /** * @remarks * The Xtrace feature status. Valid values: * - **true**: Yes. * - **false**: No. * * > This parameter can be set 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 parameter takes effect only when **TracingEnabled** is set to **true**. * * @example * 100 */ tracingSample?: number; /** * @remarks * The type of Xtrace. Valid values: **Zipkin**. * * > This parameter 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 GetListenerAttributeResponseBodyLogConfig extends $dara.Model { /** * @remarks * Indicates whether access logs contain custom header fields. Valid values: * - **true**: Yes. * - **false**: No. * * @example * true */ accessLogRecordCustomizedHeadersEnabled?: boolean; /** * @remarks * The Xtrace configuration information for access logs. */ accessLogTracingConfig?: GetListenerAttributeResponseBodyLogConfigAccessLogTracingConfig; static names(): { [key: string]: string } { return { accessLogRecordCustomizedHeadersEnabled: 'AccessLogRecordCustomizedHeadersEnabled', accessLogTracingConfig: 'AccessLogTracingConfig', }; } static types(): { [key: string]: any } { return { accessLogRecordCustomizedHeadersEnabled: 'boolean', accessLogTracingConfig: GetListenerAttributeResponseBodyLogConfigAccessLogTracingConfig, }; } 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 GetListenerAttributeResponseBodyQuicConfig 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-ek6ad66t**** */ quicListenerId?: string; /** * @remarks * Indicates whether QUIC upgrade is enabled. Valid values: * - **true**: Yes. * - **false**: No. * * > 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 GetListenerAttributeResponseBodyTags 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 GetListenerAttributeResponseBodyXForwardedForConfig extends $dara.Model { /** * @remarks * The custom header name. This value 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 * Indicates whether the `X-Forwarded-Clientcert-clientverify` header field is used to obtain the verification result of the client certificate that accesses the load balancing instance. Valid values: * - **true**: Yes. * - **false**: No. * * > 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**. * * 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 * Indicates whether the `X-Forwarded-Clientcert-fingerprint` header field is used to obtain the fingerprint of the client certificate that accesses the load balancing instance. Valid values: * - **true**: Yes. * - **false**: No. * * > 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**. * * 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 * Indicates whether the `X-Forwarded-Clientcert-issuerdn` header field is used to obtain the issuer information of the client certificate that accesses the load balancing instance. Valid values: * - **true**: Yes. * - **false**: No. * * * > 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**. * * 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 * Indicates whether the `X-Forwarded-Clientcert-subjectdn` header field is used to obtain the owner information of the client certificate that accesses the load balancing instance. Valid values: * - **true**: Yes. * - **false**: No. * * > 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 field. Valid values: * * - **true**: Yes. * - **false**: No. * * > HTTP and HTTPS listeners support this parameter. * * @example * false */ XForwardedForClientSourceIpsEnabled?: boolean; /** * @remarks * The trusted proxy IP addresses. * * Application Load Balancer (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 obtain the port of the client that accesses the load balancing instance. Valid values: * - **true**: Yes. * - **false**: No. * * > HTTP and HTTPS listeners support this parameter. * * @example * true */ XForwardedForClientSrcPortEnabled?: boolean; /** * @remarks * Indicates whether the `X-Forwarded-For` header field is used to obtain the originating IP address of the client. Valid values: * - **true** (default): Yes. * - **false**: No. * * > 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 field is used to obtain the domain name of the client that accesses the load balancing instance. Valid values: * - **true**: Yes. * - **false** (default): No. * * > 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 contains 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 field is used to obtain the listener protocol of the load balancing instance. Valid values: * - **true**: Yes. * - **false**: No. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * true */ XForwardedForProtoEnabled?: boolean; /** * @remarks * Indicates whether the `SLB-ID` header field is used to obtain the load balancing instance ID. Valid values: * - **true**: Yes. * - **false**: No. * * > HTTP, HTTPS, and QUIC listeners support this parameter. * * @example * true */ XForwardedForSLBIdEnabled?: boolean; /** * @remarks * Indicates whether the `X-Forwarded-Port` header field is used to obtain the listener port of the load balancing instance. Valid values: * - **true**: Yes. * - **false**: No. * * > 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 GetListenerAttributeResponseBody extends $dara.Model { /** * @remarks * The ACL configuration. */ aclConfig?: GetListenerAttributeResponseBodyAclConfig; /** * @remarks * The list of CA certificates. */ caCertificates?: GetListenerAttributeResponseBodyCaCertificates[]; /** * @remarks * Indicates whether mutual authentication is enabled. Valid values: * - **true**: Yes. * - **false**: No. * * @example * false */ caEnabled?: boolean; /** * @remarks * The list of certificates. */ certificates?: GetListenerAttributeResponseBodyCertificates[]; /** * @remarks * The list of default rule actions. */ defaultActions?: GetListenerAttributeResponseBodyDefaultActions[]; /** * @remarks * Indicates whether Gzip compression is enabled to compress specific types of files. Valid values: * - **true**: Yes. * - **false**: No. * * @example * true */ gzipEnabled?: boolean; /** * @remarks * Indicates whether HTTP/2 is enabled. Valid values: * - **true**: Yes. * - **false**: No. * * > Only HTTPS listeners support this parameter. * * @example * true */ http2Enabled?: boolean; /** * @remarks * The idle connection timeout period. Unit: seconds. * * If no access request is received within the timeout period, the load balancing instance temporarily breaks the current connection and restores the connection when the next request arrives. * * @example * 2 */ idleTimeout?: number; /** * @remarks * The custom listener name. * * @example * HTTP_80 */ listenerDescription?: string; /** * @remarks * The listener ID. * * @example * lsn-o4u54y73wq7b****** */ listenerId?: string; /** * @remarks * The frontend port used by the load balancing instance. * * @example * 80 */ listenerPort?: number; /** * @remarks * The listener protocol. Valid values: **HTTP**, **HTTPS**, and **QUIC**. * * @example * HTTP */ listenerProtocol?: string; /** * @remarks * The status of the listener. Valid values: * * - **Provisioning**: The listener is being created. * * - **Running**: The listener is running. * * - **Configuring**: The listener is being configured. * * - **Stopped**: The listener is stopped. * * @example * Running */ listenerStatus?: string; /** * @remarks * The load balancing instance ID. * * @example * alb-bd6oylbckp6k9x**** */ loadBalancerId?: string; /** * @remarks * The log configuration information. */ logConfig?: GetListenerAttributeResponseBodyLogConfig; /** * @remarks * The configuration information when the associated QUIC listener is enabled. */ quicConfig?: GetListenerAttributeResponseBodyQuicConfig; /** * @remarks * The request ID. * * @example * 365F4154-92F6-4AE4-92F8-7FF****** */ requestId?: string; /** * @remarks * The request timeout period. Unit: seconds. * * If the backend server does not provide a response within the timeout period, the load balancing instance 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?: GetListenerAttributeResponseBodyTags[]; /** * @remarks * The XForward field configuration. */ XForwardedForConfig?: GetListenerAttributeResponseBodyXForwardedForConfig; static names(): { [key: string]: string } { return { aclConfig: 'AclConfig', caCertificates: 'CaCertificates', caEnabled: 'CaEnabled', certificates: 'Certificates', defaultActions: 'DefaultActions', gzipEnabled: 'GzipEnabled', http2Enabled: 'Http2Enabled', idleTimeout: 'IdleTimeout', listenerDescription: 'ListenerDescription', listenerId: 'ListenerId', listenerPort: 'ListenerPort', listenerProtocol: 'ListenerProtocol', listenerStatus: 'ListenerStatus', loadBalancerId: 'LoadBalancerId', logConfig: 'LogConfig', quicConfig: 'QuicConfig', requestId: 'RequestId', requestTimeout: 'RequestTimeout', securityPolicyId: 'SecurityPolicyId', tags: 'Tags', XForwardedForConfig: 'XForwardedForConfig', }; } static types(): { [key: string]: any } { return { aclConfig: GetListenerAttributeResponseBodyAclConfig, caCertificates: { 'type': 'array', 'itemType': GetListenerAttributeResponseBodyCaCertificates }, caEnabled: 'boolean', certificates: { 'type': 'array', 'itemType': GetListenerAttributeResponseBodyCertificates }, defaultActions: { 'type': 'array', 'itemType': GetListenerAttributeResponseBodyDefaultActions }, gzipEnabled: 'boolean', http2Enabled: 'boolean', idleTimeout: 'number', listenerDescription: 'string', listenerId: 'string', listenerPort: 'number', listenerProtocol: 'string', listenerStatus: 'string', loadBalancerId: 'string', logConfig: GetListenerAttributeResponseBodyLogConfig, quicConfig: GetListenerAttributeResponseBodyQuicConfig, requestId: 'string', requestTimeout: 'number', securityPolicyId: 'string', tags: { 'type': 'array', 'itemType': GetListenerAttributeResponseBodyTags }, XForwardedForConfig: GetListenerAttributeResponseBodyXForwardedForConfig, }; } validate() { if(this.aclConfig && typeof (this.aclConfig as any).validate === 'function') { (this.aclConfig as any).validate(); } if(Array.isArray(this.caCertificates)) { $dara.Model.validateArray(this.caCertificates); } if(Array.isArray(this.certificates)) { $dara.Model.validateArray(this.certificates); } 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); } }