import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::ALB::Listener */ export declare function getListener(args: GetListenerArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getListener. */ export interface GetListenerArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getListener. */ export interface GetListenerResult { /** * Whether the listener has enabled 'Record custom header in access logs': on: enabled. off: not enabled. */ readonly accessLogRecordCustomizedHeadersEnabled: string; /** * Access control policy group ID bound to the listener. When the AclStatus parameter is set to on, AclIds is required. */ readonly aclIds: string[]; /** * Whether access control is enabled. Values: on: enabled. off: not enabled (default). */ readonly aclStatus: string; /** * Access control mode. Available values: white: allowlist mode. The listener only forwards requests from IP addresses or address ranges specified in the selected access control policy group. If no IP addresses are added to the selected policy group, the listener will not forward any requests. black: denylist mode. The listener only rejects requests from IP addresses or address ranges specified in the selected access control policy group. If no IP addresses are added to the selected policy group, the listener will forward all requests. When the AclStatus parameter is set to on, AclType is a required parameter. */ readonly aclType: string; /** * CA certificate ID associated with the HTTPS listener. This parameter is used for mutual authentication of the HTTPS listener. When the certificate source is alb, you must specify the CACertificateId parameter. */ readonly caCertificateId: string; /** * Source of the CA certificate associated with the HTTPS listener, used for mutual authentication. alb (default): Certificate uploaded via ALB. Standard ALB instances do not support certificates from this source. pca*root: Private root CA certificate purchased or uploaded via Volcano Engine Certificate Center. pca*sub: Private subordinate CA certificate purchased or uploaded via Volcano Engine Certificate Center. */ readonly caCertificateSource: string; /** * Certificate ID associated with the HTTPS listener. Required when creating an HTTPS listener and the certificate source is cert_center. */ readonly certCenterCertificateId: string; /** * Certificate ID associated with the HTTPS listener. Required when creating an HTTPS listener and the certificate source is alb. */ readonly certificateId: string; /** * Source of the default certificate associated with the HTTPS listener. Values: alb: certificate uploaded via ALB; cert*center: SSL certificate purchased or uploaded via Volcano Engine Certificate Center; pca*leaf: private leaf certificate purchased or uploaded via Volcano Engine Certificate Center. */ readonly certificateSource: string; /** * Listener creation time. */ readonly createdTime: string; /** * Personalized configuration ID. If not bound, the value is an empty string. */ readonly customizedCfgId: string; /** * Listener description. Cannot start with http:// or https://. Must start with a letter or Chinese character. Can include numbers, commas (,), periods (.), underscores (_), spaces, equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。). Length limit: 1 to 255 characters. If not specified, defaults to an empty string. */ readonly description: string; /** * List of extension domains associated with the HTTPS listener. An HTTPS listener can be associated with up to 20 extension domains. */ readonly domainExtensions: outputs.alb.GetListenerDomainExtension[]; /** * HTTP 2.0 feature switch. This parameter is only valid for HTTPS listeners. Values: on: enabled; off: disabled (default). */ readonly enableHttp2: string; /** * QUIC feature switch. This parameter is only valid for HTTPS listeners. Available values: on: enabled. off: disabled (default). Only Standard ALB instances support QUIC. */ readonly enableQuic: string; /** * Listener on/off status. Values: on: enabled (default); off: disabled. */ readonly enabled: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Listener ID. */ readonly listenerId: string; /** * Listener name. If not specified, it is named in the "protocol-port" format. Cannot start with http:// or https://. Must start with a letter or Chinese character. Can include numbers, periods (.), underscores (_), and hyphens (-). Length limit: 1-128 characters. */ readonly listenerName: string; /** * Load balancer instance ID associated with the listener. */ readonly loadBalancerId: string; /** * Private leaf certificate ID associated with the HTTPS listener. Required when creating an HTTPS listener and the certificate source is pca_leaf. */ readonly pcaLeafCertificateId: string; /** * CA certificate ID associated with the HTTPS listener. This parameter is used for mutual authentication of the HTTPS listener. When the certificate source is pca_root, you must specify the PcaRootCACertificateId parameter. */ readonly pcaRootCaCertificateId: string; /** * CA certificate ID associated with the HTTPS listener. This parameter is used for two-way authentication on HTTPS listeners. When the certificate source is pca_sub, you must specify the PcaSubCACertificateId parameter. */ readonly pcaSubCaCertificateId: string; /** * Listener port. Value range: 1 - 65535. */ readonly port: number; /** * Project name to which the listener belongs. */ readonly projectName: string; /** * Listener protocol. Supports HTTP and HTTPS protocols. */ readonly protocol: string; /** * Default server group for the listener. */ readonly serverGroupId: string; /** * All server groups associated with the listener. */ readonly serverGroups: outputs.alb.GetListenerServerGroup[]; /** * Listener status. Values: Creating: creating. Active: running. Pending: configuration changing. Disabled: stopped. Deleting: deleting. */ readonly status: string; /** * Tags associated with the listener. */ readonly tags: outputs.alb.GetListenerTag[]; /** * The most recent operation time of the listener. */ readonly updatedTime: string; } /** * Data Source schema for Volcengine::ALB::Listener */ export declare function getListenerOutput(args: GetListenerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getListener. */ export interface GetListenerOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }