import * as $dara from '@darabonba/typescript'; export declare class CreateServerGroupRequestConnectionDrainConfig extends $dara.Model { /** * @remarks * Specifies whether to enable connection draining. * * - **true**: enabled. * - **false**: disabled (default). * * @example * false */ connectionDrainEnabled?: boolean; /** * @remarks * The connection draining timeout period. * * Valid values: **0** to **900**. * * Default value: **300**. * * @example * 300 */ connectionDrainTimeout?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateServerGroupRequestHealthCheckConfig extends $dara.Model { /** * @remarks * The list of status codes that indicate a Normal health check status. */ healthCheckCodes?: string[]; /** * @remarks * The port of the backend server used for health checks. * * Valid values: **0** to **65535**. * * Default value: **0**, which indicates that the port of the backend server is used for health checks. * * @example * 80 */ healthCheckConnectPort?: number; /** * @remarks * Specifies whether to enable health checks. Valid values: * * - **true**: enabled. * * - **false**: disabled. * * > Health checks are enabled by default when **ServerGroupType** is set to **Instance** or **Ip**. Health checks are disabled by default when **ServerGroupType** is set to **Fc**. * * This parameter is required. * * @example * true */ healthCheckEnabled?: boolean; /** * @remarks * The domain name used for health checks. * * - **Use the internal IP address of the backend server** (default): uses the internal IP address of the backend server as the health check domain name. * * - **Specify a specific domain name**: enter a domain name. * * - The domain name must be 1 to 80 characters in length. * * - The domain name can contain lowercase letters, digits, hyphens (-), and periods (.). * * - The domain name must contain at least one period (.). Periods (.) cannot appear at the beginning or end. * * - The rightmost domain label can contain only letters, not digits or hyphens (-). * * - Hyphens (-) cannot appear at the beginning or end. * * > This parameter takes effect only when **HealthCheckProtocol** is set to **HTTP**, **HTTPS**, or **gRPC**. * * @example * www.example.com */ healthCheckHost?: string; /** * @remarks * The HTTP version for health checks. Valid values: **HTTP1.0** and **HTTP1.1** (default). * * > This parameter takes effect only when **HealthCheckProtocol** is set to **HTTP** or **HTTPS**. * * @example * HTTP1.1 */ healthCheckHttpVersion?: string; /** * @remarks * The interval between two consecutive health checks. Unit: seconds. * * Valid values: **1** to **50**. * * Default value: **2**. * * @example * 2 */ healthCheckInterval?: number; /** * @remarks * The health check method. Valid values: * * - **GET**: If the response body exceeds 8 KB, it is truncated. However, this does not affect the health check result. * * - **POST**: gRPC listener health checks use the POST method by default. * * - **HEAD** (default): HTTP and HTTPS listener health checks use the HEAD method by default. * * > This parameter takes effect only when **HealthCheckProtocol** is set to **HTTP**, **HTTPS**, or **gRPC**. * * @example * HEAD */ healthCheckMethod?: string; /** * @remarks * The forwarding rule path for health checks. * * The path must be 1 to 80 characters in length and can contain only letters, digits, and the characters `-/.%?#&=` and the extended characters `_;~!()*[]@$^:\\",+`. The URL must start with a forward slash (/). * * > This parameter takes effect only when **HealthCheckProtocol** is set to **HTTP** or **HTTPS**. * * @example * /test/index.html */ healthCheckPath?: string; /** * @remarks * The health check protocol. Valid values: * * - **HTTP**: uses impersonation of browser access behavior by sending HEAD or GET requests to check whether the server application is healthy. * * - **HTTPS**: uses impersonation of browser access behavior by sending HEAD or GET requests to check whether the server application is healthy. Data encryption is used, which is more secure than HTTP. * * - **TCP**: sends SYN handshake packets to check whether the server port is alive. * * - **gRPC**: sends POST or GET requests to check whether the server application is healthy. * * @example * HTTP */ healthCheckProtocol?: string; /** * @remarks * The maximum period of time to wait for a response from a health check. If the backend server does not respond correctly within the specified period of time, the health check fails. Unit: seconds. * * Valid values: **1** to **300**. * * Default value: **5**. * * @example * 5 */ healthCheckTimeout?: number; /** * @remarks * The number of consecutive successful health checks required before the health check status of a backend server changes from **fail** to **success**. * * Valid values: **2** to **10**. * * Default value: **3**. * * @example * 3 */ healthyThreshold?: number; /** * @remarks * The number of consecutive failed health checks required before the health check status of a backend server changes from **success** to **fail**. * * Valid values: **2** to **10**. * * Default value: **3**. * * @example * 3 */ unhealthyThreshold?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateServerGroupRequestSlowStartConfig extends $dara.Model { /** * @remarks * The slow start duration. * * Valid values: **30** to **900**. * * Default value: **30**. * * @example * 30 */ slowStartDuration?: number; /** * @remarks * Specifies whether to enable slow start. * * - **true**: enabled. * - **false**: disabled (default). * * @example * false */ slowStartEnabled?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateServerGroupRequestStickySessionConfig extends $dara.Model { /** * @remarks * The cookie configured on the server. * * The cookie must be 1 to 200 characters in length and can contain only ASCII letters and digits. It cannot contain commas (,), semicolons (;), or spaces, and cannot start with a dollar sign ($). * * > This parameter takes effect when **StickySessionEnabled** is set to **true** and **StickySessionType** is set to **server**. * * @example * B490B6EBF6F3CD402E515D22BCDA**** */ cookie?: string; /** * @remarks * The cookie timeout period. Unit: seconds. * * Valid values: **1** to **86400**. * * Default value: **1000**. * * > This parameter takes effect when **StickySessionEnabled** is set to **true** and **StickySessionType** is set to **Insert**. * * @example * 1000 */ cookieTimeout?: number; /** * @remarks * Specifies whether to enable session persistence. Valid values: * * - **true**: enabled. * - **false**: disabled. * * > This parameter takes effect only when **ServerGroupType** is set to **Instance** or **Ip**. * * @example * false */ stickySessionEnabled?: boolean; /** * @remarks * The method used to handle cookies. Valid values: * * - **Insert** (default): inserts a cookie. When a client first accesses the load balancer, the load balancer inserts a cookie (SERVERID) into the HTTP or HTTPS response. Subsequent requests that carry this cookie are forwarded to the previously recorded backend server. * * - **Server**: rewrites a cookie. When the load balancing service detects a user-defined cookie, it rewrites the original cookie. Subsequent requests that carry the new cookie are forwarded to the previously recorded backend server. * * > This parameter takes effect when **StickySessionEnabled** is set to **true**. * * @example * Insert */ stickySessionType?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateServerGroupRequestTag 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:`, or 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:`, or 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 CreateServerGroupRequestUchConfig extends $dara.Model { /** * @remarks * The parameter type. Set the value to **QueryString**. * * This parameter is required. * * @example * QueryString */ type?: string; /** * @remarks * The consistent hashing parameter value. * * This parameter is required. * * @example * abc */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreateServerGroupRequest extends $dara.Model { /** * @remarks * The client token that is used to ensure the idempotence of the request. * * Generate a parameter value from your client to ensure that the value is unique among different requests. ClientToken supports only ASCII characters. * * > If you do not specify this parameter, the system uses the **RequestId** of the API request as the **ClientToken**. The **RequestId** may vary for each API request. * * @example * 5A2CAF0E-5718-45B5-9D4D-70B****** */ clientToken?: string; /** * @remarks * The connection draining configuration. * * After connection draining is enabled, when a backend server is removed or a health check failure occurs, the load balancing service allows existing connections to continue Normal data transmission for a specified period of time. * * > * > - Basic Edition instances do not support connection draining. Only Standard Edition and WAF Enhanced Edition instances support this feature. * > - Server type and IP type server groups support connection draining. Function Compute type server groups do not. */ connectionDrainConfig?: CreateServerGroupRequestConnectionDrainConfig; /** * @remarks * Specifies whether to enable cross-zone load balancing for the server group. Valid values: * * - **true**: enabled (default). * * - **false**: disabled. * * > * > - Basic Edition instances do not support binding server groups with cross-zone load balancing disabled. Only Standard Edition and WAF Enhanced Edition instances support this feature. * > - Server type and IP type server groups support disabling cross-zone load balancing. Function Compute type server groups do not. * > - Session persistence is not supported when cross-zone load balancing is disabled. * * @example * true */ crossZoneEnabled?: boolean; /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - **true**: performs a dry run without creating the server group. The system checks required parameters, request syntax, and business restrictions. If the check fails, the corresponding error is returned. If the check succeeds, the error code `DryRunOperation` is returned. * - **false** (default): sends a normal request. After the check succeeds, an HTTP 2xx status code is returned and the operation is performed. * * @example * false */ dryRun?: boolean; /** * @remarks * The health check configurations. * * This parameter is required. * * @example * rg-123 */ healthCheckConfig?: CreateServerGroupRequestHealthCheckConfig; /** * @remarks * The IP version affinity mode. * * @example * Affinity */ ipVersionAffinityMode?: string; /** * @remarks * Specifies whether to enable IPv6. * * @example * true */ ipv6Enabled?: boolean; /** * @remarks * The backend protocol. Valid values: * * - **HTTP** (default): can be associated with HTTPS, HTTP, and QUIC listeners. * * - **HTTPS**: can be associated with HTTPS listeners. * * - **gRPC**: can be associated with HTTPS and QUIC listeners. * * > You do not need to configure the backend protocol when **ServerGroupType** is set to **Fc**. * * @example * HTTP */ protocol?: string; /** * @remarks * The resource group ID. * * @example * rg-atstuj3rsop**** */ resourceGroupId?: string; /** * @remarks * The scheduling algorithm. Valid values: * * - **Wrr** (default): weighted round-robin. Backend servers with higher weights receive more requests. * * - **Wlc**: weighted least connections. In addition to the weight assigned to each backend server, the actual load (number of connections) is also considered. When the weights are the same, backend servers with fewer current connections receive more requests. * * - **Sch**: consistent hashing. Requests with the same hash factor are routed to the same backend server. If the **UchConfig** parameter is not configured, the default hash factor is the source IP address, and requests from the same source IP address are distributed to the same backend server. If the **UchConfig** parameter is configured, the hash factor is the URL parameter, and requests with the same URL parameter are distributed to the same backend server. * * * > This parameter takes effect only when **ServerGroupType** is set to **Instance** or **Ip**. * * @example * Wrr */ scheduler?: string; /** * @remarks * The server group name. The name must be 2 to 128 characters in length, and must start with an uppercase letter, lowercase letter, Chinese character, or digit. The name can contain digits, periods (.), underscores (_), hyphens (-), and spaces. * * This parameter is required. * * @example * test */ serverGroupName?: string; /** * @remarks * The type of the server group. Valid values: * * - **Instance** (default): server type. This type of server group supports adding **Ecs**, **Eni**, and **Eci** instances. * * - **Ip**: IP address type. This type of server group supports adding backend servers by IP address. * * - **Fc**: Function Compute type. This type supports adding Function Compute-based backend servers. * * @example * Instance */ serverGroupType?: string; /** * @remarks * This parameter is applicable only to ALB Ingress scenarios and specifies the `K8s Service` name that corresponds to the server group. * * @example * test */ serviceName?: string; /** * @remarks * The slow start configuration. * * After slow start is enabled, newly added backend servers are warmed up during a specified period of time. The number of requests forwarded to the server increases linearly. * * > * > - Basic Edition instances do not support slow start. Only Standard Edition and WAF Enhanced Edition instances support this feature. * > - Server type and IP backend server groups support slow start configuration. Function Compute backend server groups do not. * > - Slow start can be enabled only when the backend scheduling algorithm is weighted round-robin. */ slowStartConfig?: CreateServerGroupRequestSlowStartConfig; /** * @remarks * The session persistence configuration. * * > This parameter takes effect only when **ServerGroupType** is set to **Instance** or **Ip**. */ stickySessionConfig?: CreateServerGroupRequestStickySessionConfig; /** * @remarks * The tags. */ tag?: CreateServerGroupRequestTag[]; /** * @remarks * The URL consistent hashing parameter settings. */ uchConfig?: CreateServerGroupRequestUchConfig; /** * @remarks * Specifies whether to enable upstream keepalive connections. * * - **true**: enabled. * - **false** (default): disabled. * * @example * false */ upstreamKeepaliveEnabled?: boolean; /** * @remarks * The VPC-connected instance ID. Only servers in this VPC can be added to the server group. * * > This parameter takes effect only when **ServerGroupType** is set to **Instance** or **Ip**. * * @example * vpc-bp15zdkdt37pq72zv**** */ vpcId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }