import * as $dara from '@darabonba/typescript'; export declare class ListServerGroupsResponseBodyServerGroupsConnectionDrainConfig extends $dara.Model { /** * @remarks * Indicates whether connection draining is enabled. * * - **true**: Enabled. * - **false**: Disabled. * * @example * false */ connectionDrainEnabled?: boolean; /** * @remarks * The connection draining timeout period. * * @example * 300 */ connectionDrainTimeout?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ListServerGroupsResponseBodyServerGroupsHealthCheckConfig extends $dara.Model { /** * @remarks * The list of status codes that indicate healthy health checks. */ healthCheckCodes?: string[]; /** * @remarks * The port of the backend server used for health checks. Valid values: **0** to **65535**. * * A value of **0** indicates that the port of the backend server is used for health checks. * * @example * 80 */ healthCheckConnectPort?: number; /** * @remarks * Indicates whether health checks are enabled. Valid values: * - **true**: Enabled. * - **false**: Disabled. * * @example * true */ healthCheckEnabled?: boolean; /** * @remarks * The domain name used for health checks. * * - **Use the internal IP address of the backend server** (default): The internal IP address of the backend server is used as the health check domain name. * * - **Specify a 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** or **HTTP1.1**. * * > 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**. * * @example * 5 */ healthCheckInterval?: number; /** * @remarks * The health check method. Valid values: * * - **GET**: If the response body exceeds 8 KB, it is truncated, but this does not affect the health check result. * * - **POST**: gRPC listener health checks use the POST method by default. * * - **HEAD**: 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 path of the forwarding rule for health checks. * * > 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**: Sends HEAD or GET requests to simulate browser access behavior and check whether the server application is healthy. * * - **HTTPS**: Sends HEAD or GET requests to simulate browser access behavior and 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 amount of time to wait for a response from a health check. If the backend server does not respond correctly within the specified time, the health check fails. Unit: seconds. * * @example * 3 */ 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**. * * @example * 4 */ 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**. * * @example * 4 */ unhealthyThreshold?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ListServerGroupsResponseBodyServerGroupsSlowStartConfig extends $dara.Model { /** * @remarks * The slow start duration. * * @example * 30 */ slowStartDuration?: number; /** * @remarks * Indicates whether slow start is enabled. * * - **true**: Enabled. * - **false**: Disabled. * * @example * false */ slowStartEnabled?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ListServerGroupsResponseBodyServerGroupsStickySessionConfig extends $dara.Model { /** * @remarks * The cookie configured on the server. * * @example * B490B5EBF6F3CD402E515D22BCDA**** */ cookie?: string; /** * @remarks * The cookie timeout period. Unit: seconds. Valid values: **1** to **86400**. * * > This parameter takes effect only when **StickySessionEnabled** is set to **true** and **StickySessionType** is set to **Insert**. * * @example * 1000 */ cookieTimeout?: number; /** * @remarks * Indicates whether session persistence is enabled. Valid values: * * - **true**: Enabled. * - **false**: Disabled. * * @example * false */ stickySessionEnabled?: boolean; /** * @remarks * The method used to handle cookies. Valid values: * * - **Insert**: Inserts a cookie. When a client accesses the server for the first time, load balancing inserts a cookie (SERVERID) into the HTTP or HTTPS response. The next time the client accesses the server with this cookie, load balancing forwards the request to the previously recorded backend server. * - **Server**: Rewrites a cookie. When load balancing detects a user-defined cookie, it rewrites the original cookie. The next time the client accesses the server with the new cookie, load balancing forwards the request to the previously recorded backend server. * * @example * Insert */ stickySessionType?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ListServerGroupsResponseBodyServerGroupsTags extends $dara.Model { /** * @remarks * The tag key. * * @example * Test */ key?: string; /** * @remarks * The tag value. * * @example * Test */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ListServerGroupsResponseBodyServerGroupsUchConfig extends $dara.Model { /** * @remarks * The parameter type. Only QueryString is supported. * * @example * QueryString */ type?: string; /** * @remarks * The consistent hashing parameter value. * * @example * abc */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ListServerGroupsResponseBodyServerGroups extends $dara.Model { /** * @remarks * Indicates whether configuration management is enabled. Valid values: * - **true**: Enabled. * - **false**: Disabled. * * @example * false */ configManagedEnabled?: boolean; /** * @remarks * The connection draining configuration. * * After connection draining is enabled, when a backend server is removed or a health check has failed, load balancing allows existing connections to continue Normal data transmission for a specified period of time before the connection is subject to break. * > * > - Basic Edition instances do not support connection draining. Only Standard Edition and WAF-enabled Edition instances support this feature. * > - Server type and IP type server groups support connection draining. Function Compute type server groups do not. */ connectionDrainConfig?: ListServerGroupsResponseBodyServerGroupsConnectionDrainConfig; /** * @remarks * The time when the resource was created. * * @example * 2022-07-02T02:49:05Z */ createTime?: string; /** * @remarks * Indicates whether cross-zone load balancing is enabled for the server group. Valid values: * * - **true**: Enabled (default). * * - **false**: Disabled. * * @example * true */ crossZoneEnabled?: boolean; /** * @remarks * The health check configuration. */ healthCheckConfig?: ListServerGroupsResponseBodyServerGroupsHealthCheckConfig; /** * @remarks * The IP version affinity mode of the server group. * * @example * Affinity */ ipVersionAffinityMode?: string; /** * @remarks * Indicates whether IPv6 is supported. Valid values: * - **true**: Supported. * - **false**: Not supported. * * @example * false */ ipv6Enabled?: boolean; /** * @remarks * The backend protocol type. Valid values: * * - **HTTP**: 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. * * @example * HTTP */ protocol?: string; /** * @remarks * The IDs of the associated instances. */ relatedLoadBalancerIds?: string[]; /** * @remarks * The resource group ID. * * @example * rg-atstuj3rtop**** */ resourceGroupId?: string; /** * @remarks * The scheduling algorithm. Valid values: * * - **Wrr**: Weighted round-robin. Backend servers with higher weights are polled more frequently. * - **Wlc**: Weighted least connections. In addition to polling based on the weight of each backend server, the actual load (number of connections) of the backend server is also considered. When the weights are the same, backend servers with fewer current connections are polled more frequently. * - **Sch**: Consistent hashing. Requests with the same hash factor are dispatched 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. * * @example * Wrr */ scheduler?: string; /** * @remarks * The number of servers in the server group. * * @example * 1 */ serverCount?: number; /** * @remarks * The server group ID. * * @example * sgp-cige6j**** */ serverGroupId?: string; /** * @remarks * The server group name. * * @example * Group3 */ serverGroupName?: string; /** * @remarks * The server group status. Valid values: * - **Creating**: The server group is being created. * * - **Available**: The server group is available. * * - **Configuring**: The server group is being configured. * * @example * Available */ serverGroupStatus?: string; /** * @remarks * The server group type. Valid values: * * - **Instance**: Server type, including ECS, ENI, and ECI instances. * * - **Ip**: IP address type. * * - **Fc**: Function Compute type. * * @example * Instance */ serverGroupType?: string; /** * @remarks * The service name. * * @example * test */ serviceName?: string; /** * @remarks * The slow start configuration. * * After slow start is enabled, newly added backend servers in the server group are warmed up within the 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-enabled 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?: ListServerGroupsResponseBodyServerGroupsSlowStartConfig; /** * @remarks * The session persistence configuration struct. */ stickySessionConfig?: ListServerGroupsResponseBodyServerGroupsStickySessionConfig; /** * @remarks * The list of tags bound to the server group. */ tags?: ListServerGroupsResponseBodyServerGroupsTags[]; /** * @remarks * The URL consistent hashing parameter settings. */ uchConfig?: ListServerGroupsResponseBodyServerGroupsUchConfig; /** * @remarks * Indicates whether backend keepalive is enabled. Valid values: * - **true**: Enabled. * - **false**: Disabled. * * @example * false */ upstreamKeepaliveEnabled?: boolean; /** * @remarks * The VPC instance ID. * * @example * vpc-bp15zckdt37pq72zv**** */ vpcId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ListServerGroupsResponseBody extends $dara.Model { /** * @remarks * The number of entries per page in a paginated query. * * @example * 50 */ maxResults?: number; /** * @remarks * Indicates whether a next query exists. Valid values: * - If **NextToken** is empty, no next query exists. * - If **NextToken** is returned, the value indicates the token that is used to start the next query. * * @example * caeba0bbb2be03f8**** */ nextToken?: string; /** * @remarks * The request ID. * * @example * CEF72CEB-54B6-4AE8-B225-F876****** */ requestId?: string; /** * @remarks * The list of backend server groups. */ serverGroups?: ListServerGroupsResponseBodyServerGroups[]; /** * @remarks * The number of entries returned. * * @example * 1000 */ totalCount?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }