import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A server group is a set of backend servers. * * ## Import * * ```sh * $ pulumi import volcenginecc:clb/nlbServerGroup:NlbServerGroup example "server_group_id" * ``` */ export declare class NlbServerGroup extends pulumi.CustomResource { /** * Get an existing NlbServerGroup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NlbServerGroupState, opts?: pulumi.CustomResourceOptions): NlbServerGroup; /** * Returns true if the given object is an instance of NlbServerGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NlbServerGroup; /** * Account ID */ readonly accountId: pulumi.Output; /** * Enable all-port forwarding */ readonly anyPortEnabled: pulumi.Output; /** * Enable backend security group pass-through. This parameter can only be configured when Type is 'instance'. */ readonly bypassSecurityGroupEnabled: pulumi.Output; /** * Enable graceful connection termination. */ readonly connectionDrainEnabled: pulumi.Output; /** * Connection graceful shutdown timeout, range: 0–900 seconds. If ConnectionDrainEnabled is 'true', this parameter is required. */ readonly connectionDrainTimeout: pulumi.Output; /** * Backend server group creation time */ readonly createdTime: pulumi.Output; /** * Description of the backend server group, description of the server group. Must start with a letter, number, or Chinese character, and can include the following special characters: English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period(。). Length limit: 0–255 characters. If this parameter is not provided, the default is an empty string. */ readonly description: pulumi.Output; /** * Health check parameters */ readonly healthCheck: pulumi.Output; /** * IP address type of the server group. Options: ipv4 (default): The server group only supports adding IPv4 type backend servers. ipv6: The server group only supports adding IPv6 type backend servers. */ readonly ipAddressVersion: pulumi.Output; /** * Enable source address persistence */ readonly preserveClientIpEnabled: pulumi.Output; /** * Project name */ readonly projectName: pulumi.Output; /** * Communication protocol used by NLB to forward traffic to backend servers. Options: TCP. UDP. */ readonly protocol: pulumi.Output; /** * Enable Proxy-Protocol. Available values: off (default): disabled. standard: enabled. NLB forwards the client source IP address to the backend server via Proxy-Protocol. Proxy-Protocol must also be configured on the backend server. */ readonly proxyProtocolType: pulumi.Output; /** * NLB instance associated with the server group. */ readonly relatedLoadBalancerIds: pulumi.Output; /** * Rules followed by NLB when forwarding traffic. Options: wrr (default): Weighted round robin. Backend servers with higher weights are selected more frequently (higher probability). wlc: Weighted least connections. Based on the least number of connections, assigns different weights to backend servers according to their processing capabilities, allowing each server to handle a corresponding number of service requests. sh: Source address hash. Uses consistent hashing based on the source IP address; requests from the same source address are routed to the same backend server. */ readonly scheduler: pulumi.Output; /** * Number of backend servers in the server group. */ readonly serverCount: pulumi.Output; /** * Server group ID */ readonly serverGroupId: pulumi.Output; /** * Server group name. Must start with a letter, number, or Chinese character, and can include the following special characters: period (.), underscore (_), and hyphen (-). Limit: 1–128 characters. If not specified, defaults to the server group ID */ readonly serverGroupName: pulumi.Output; readonly servers: pulumi.Output; /** * Enable session persistence. */ readonly sessionPersistenceEnabled: pulumi.Output; /** * Session persistence timeout. Range: 1–3600 seconds, default: 1000 seconds */ readonly sessionPersistenceTimeout: pulumi.Output; /** * Server group status */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Enable removal of TCP/HTTP/HTTPS packet timestamps */ readonly timestampRemoveEnabled: pulumi.Output; /** * Server group type. Available values: instance (default): server type. Supports adding cloud server instances and auxiliary network interfaces bound to cloud server instances as backend servers. ip: IP address type. Supports adding any network-accessible server in a VPC or IDC as a backend server. */ readonly type: pulumi.Output; /** * Last update time of the backend server group. */ readonly updatedTime: pulumi.Output; /** * ID of the private network to which the server group belongs */ readonly vpcId: pulumi.Output; /** * Create a NlbServerGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NlbServerGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NlbServerGroup resources. */ export interface NlbServerGroupState { /** * Account ID */ accountId?: pulumi.Input; /** * Enable all-port forwarding */ anyPortEnabled?: pulumi.Input; /** * Enable backend security group pass-through. This parameter can only be configured when Type is 'instance'. */ bypassSecurityGroupEnabled?: pulumi.Input; /** * Enable graceful connection termination. */ connectionDrainEnabled?: pulumi.Input; /** * Connection graceful shutdown timeout, range: 0–900 seconds. If ConnectionDrainEnabled is 'true', this parameter is required. */ connectionDrainTimeout?: pulumi.Input; /** * Backend server group creation time */ createdTime?: pulumi.Input; /** * Description of the backend server group, description of the server group. Must start with a letter, number, or Chinese character, and can include the following special characters: English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period(。). Length limit: 0–255 characters. If this parameter is not provided, the default is an empty string. */ description?: pulumi.Input; /** * Health check parameters */ healthCheck?: pulumi.Input; /** * IP address type of the server group. Options: ipv4 (default): The server group only supports adding IPv4 type backend servers. ipv6: The server group only supports adding IPv6 type backend servers. */ ipAddressVersion?: pulumi.Input; /** * Enable source address persistence */ preserveClientIpEnabled?: pulumi.Input; /** * Project name */ projectName?: pulumi.Input; /** * Communication protocol used by NLB to forward traffic to backend servers. Options: TCP. UDP. */ protocol?: pulumi.Input; /** * Enable Proxy-Protocol. Available values: off (default): disabled. standard: enabled. NLB forwards the client source IP address to the backend server via Proxy-Protocol. Proxy-Protocol must also be configured on the backend server. */ proxyProtocolType?: pulumi.Input; /** * NLB instance associated with the server group. */ relatedLoadBalancerIds?: pulumi.Input[]>; /** * Rules followed by NLB when forwarding traffic. Options: wrr (default): Weighted round robin. Backend servers with higher weights are selected more frequently (higher probability). wlc: Weighted least connections. Based on the least number of connections, assigns different weights to backend servers according to their processing capabilities, allowing each server to handle a corresponding number of service requests. sh: Source address hash. Uses consistent hashing based on the source IP address; requests from the same source address are routed to the same backend server. */ scheduler?: pulumi.Input; /** * Number of backend servers in the server group. */ serverCount?: pulumi.Input; /** * Server group ID */ serverGroupId?: pulumi.Input; /** * Server group name. Must start with a letter, number, or Chinese character, and can include the following special characters: period (.), underscore (_), and hyphen (-). Limit: 1–128 characters. If not specified, defaults to the server group ID */ serverGroupName?: pulumi.Input; servers?: pulumi.Input[]>; /** * Enable session persistence. */ sessionPersistenceEnabled?: pulumi.Input; /** * Session persistence timeout. Range: 1–3600 seconds, default: 1000 seconds */ sessionPersistenceTimeout?: pulumi.Input; /** * Server group status */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Enable removal of TCP/HTTP/HTTPS packet timestamps */ timestampRemoveEnabled?: pulumi.Input; /** * Server group type. Available values: instance (default): server type. Supports adding cloud server instances and auxiliary network interfaces bound to cloud server instances as backend servers. ip: IP address type. Supports adding any network-accessible server in a VPC or IDC as a backend server. */ type?: pulumi.Input; /** * Last update time of the backend server group. */ updatedTime?: pulumi.Input; /** * ID of the private network to which the server group belongs */ vpcId?: pulumi.Input; } /** * The set of arguments for constructing a NlbServerGroup resource. */ export interface NlbServerGroupArgs { /** * Enable all-port forwarding */ anyPortEnabled?: pulumi.Input; /** * Enable backend security group pass-through. This parameter can only be configured when Type is 'instance'. */ bypassSecurityGroupEnabled?: pulumi.Input; /** * Enable graceful connection termination. */ connectionDrainEnabled?: pulumi.Input; /** * Connection graceful shutdown timeout, range: 0–900 seconds. If ConnectionDrainEnabled is 'true', this parameter is required. */ connectionDrainTimeout?: pulumi.Input; /** * Description of the backend server group, description of the server group. Must start with a letter, number, or Chinese character, and can include the following special characters: English comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period(。). Length limit: 0–255 characters. If this parameter is not provided, the default is an empty string. */ description?: pulumi.Input; /** * Health check parameters */ healthCheck?: pulumi.Input; /** * IP address type of the server group. Options: ipv4 (default): The server group only supports adding IPv4 type backend servers. ipv6: The server group only supports adding IPv6 type backend servers. */ ipAddressVersion?: pulumi.Input; /** * Enable source address persistence */ preserveClientIpEnabled?: pulumi.Input; /** * Project name */ projectName?: pulumi.Input; /** * Communication protocol used by NLB to forward traffic to backend servers. Options: TCP. UDP. */ protocol: pulumi.Input; /** * Enable Proxy-Protocol. Available values: off (default): disabled. standard: enabled. NLB forwards the client source IP address to the backend server via Proxy-Protocol. Proxy-Protocol must also be configured on the backend server. */ proxyProtocolType?: pulumi.Input; /** * Rules followed by NLB when forwarding traffic. Options: wrr (default): Weighted round robin. Backend servers with higher weights are selected more frequently (higher probability). wlc: Weighted least connections. Based on the least number of connections, assigns different weights to backend servers according to their processing capabilities, allowing each server to handle a corresponding number of service requests. sh: Source address hash. Uses consistent hashing based on the source IP address; requests from the same source address are routed to the same backend server. */ scheduler?: pulumi.Input; /** * Server group name. Must start with a letter, number, or Chinese character, and can include the following special characters: period (.), underscore (_), and hyphen (-). Limit: 1–128 characters. If not specified, defaults to the server group ID */ serverGroupName?: pulumi.Input; servers?: pulumi.Input[]>; /** * Enable session persistence. */ sessionPersistenceEnabled?: pulumi.Input; /** * Session persistence timeout. Range: 1–3600 seconds, default: 1000 seconds */ sessionPersistenceTimeout?: pulumi.Input; tags?: pulumi.Input[]>; /** * Enable removal of TCP/HTTP/HTTPS packet timestamps */ timestampRemoveEnabled?: pulumi.Input; /** * Server group type. Available values: instance (default): server type. Supports adding cloud server instances and auxiliary network interfaces bound to cloud server instances as backend servers. ip: IP address type. Supports adding any network-accessible server in a VPC or IDC as a backend server. */ type?: pulumi.Input; /** * ID of the private network to which the server group belongs */ vpcId: pulumi.Input; }