import * as $dara from '@darabonba/typescript'; export declare class UpdateRulesAttributeRequestRulesRuleActionsCorsConfig extends $dara.Model { /** * @remarks * Specifies whether to allow credentials in cross-origin requests. * * @example * off */ allowCredentials?: string; /** * @remarks * The list of headers that are allowed for cross-origin requests. */ allowHeaders?: string[]; /** * @remarks * The allowed HTTP methods for cross-origin requests. */ allowMethods?: string[]; /** * @remarks * The allowed origins. */ allowOrigin?: string[]; /** * @remarks * The list of headers that can be exposed to the client. */ exposeHeaders?: string[]; /** * @remarks * The maximum cache duration of preflight requests in the browser. * * @example * 60 */ maxAge?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsFixedResponseConfig extends $dara.Model { /** * @remarks * The content. * * @example * dssacav */ content?: string; /** * @remarks * The content type. * * @example * text/plain */ contentType?: string; /** * @remarks * The HTTP status code. * * @example * 200 */ httpCode?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsForwardGroupConfigServerGroupStickySession extends $dara.Model { /** * @remarks * Specifies whether to enable session persistence. * * @example * true */ enabled?: boolean; /** * @remarks * The timeout period. * * @example * 100 */ timeout?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsForwardGroupConfigServerGroupTuples extends $dara.Model { /** * @remarks * The server group ID. * * @example * sgp-3kbj35ay7cvi****** */ serverGroupId?: string; /** * @remarks * The weight. * * @example * 100 */ weight?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsForwardGroupConfig extends $dara.Model { /** * @remarks * Session persistence between server groups. */ serverGroupStickySession?: UpdateRulesAttributeRequestRulesRuleActionsForwardGroupConfigServerGroupStickySession; /** * @remarks * The list of destination server groups. */ serverGroupTuples?: UpdateRulesAttributeRequestRulesRuleActionsForwardGroupConfigServerGroupTuples[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig extends $dara.Model { /** * @remarks * Specifies whether to overwrite the value of a request header. * * @example * False */ coverEnabled?: boolean; /** * @remarks * The HTTP header. * * @example * key */ key?: string; /** * @remarks * The content of the HTTP header. * * @example * value */ value?: string; /** * @remarks * The value type. * * @example * SystemDefined */ valueType?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig extends $dara.Model { /** * @remarks * The destination host to which requests are redirected. * * @example * test.alb.com */ host?: string; /** * @remarks * The redirection method. * * @example * 301 */ httpCode?: string; /** * @remarks * The destination path to which requests are redirected. * * @example * / */ path?: string; /** * @remarks * The destination port to which requests are redirected. * * @example * 443 */ port?: string; /** * @remarks * The destination protocol to which requests are redirected. * * @example * HTTPS */ protocol?: string; /** * @remarks * The destination query string to which requests are redirected. * * @example * ${query} */ query?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsRemoveHeaderConfig extends $dara.Model { /** * @remarks * The key of the HTTP header. * * @example * key */ key?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsRewriteConfig extends $dara.Model { /** * @remarks * The hostname. * * @example * ${host} */ host?: string; /** * @remarks * The path. * * @example * / */ path?: string; /** * @remarks * The query. * * @example * ${query} */ query?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsTrafficLimitConfig extends $dara.Model { /** * @remarks * The number of QPS for a single IP address. * * @example * 100 */ perIpQps?: number; /** * @remarks * The number of queries per second (QPS). * * @example * 1000 */ QPS?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsTrafficMirrorConfigMirrorGroupConfigServerGroupTuples extends $dara.Model { /** * @remarks * The server group ID. * * @example * sgp-vlnjo1rhw0vc****** */ serverGroupId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsTrafficMirrorConfigMirrorGroupConfig extends $dara.Model { /** * @remarks * The server groups to which traffic is mirrored. */ serverGroupTuples?: UpdateRulesAttributeRequestRulesRuleActionsTrafficMirrorConfigMirrorGroupConfigServerGroupTuples[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActionsTrafficMirrorConfig extends $dara.Model { /** * @remarks * The server groups to which traffic is mirrored. */ mirrorGroupConfig?: UpdateRulesAttributeRequestRulesRuleActionsTrafficMirrorConfigMirrorGroupConfig; /** * @remarks * The type of the mirror destination. * * @example * ForwardGroupMirror */ targetType?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleActions extends $dara.Model { /** * @remarks * The cross-origin resource sharing (CORS) configuration. */ corsConfig?: UpdateRulesAttributeRequestRulesRuleActionsCorsConfig; /** * @remarks * The configuration of the action to return a fixed response. */ fixedResponseConfig?: UpdateRulesAttributeRequestRulesRuleActionsFixedResponseConfig; /** * @remarks * The configuration of the action to forward requests to server groups. */ forwardGroupConfig?: UpdateRulesAttributeRequestRulesRuleActionsForwardGroupConfig; /** * @remarks * The configuration of the action to insert a header. */ insertHeaderConfig?: UpdateRulesAttributeRequestRulesRuleActionsInsertHeaderConfig; /** * @remarks * The priority. * * This parameter is required. * * @example * 1 */ order?: number; /** * @remarks * The configuration of the redirection action. */ redirectConfig?: UpdateRulesAttributeRequestRulesRuleActionsRedirectConfig; /** * @remarks * The configuration for removing a specific HTTP header. */ removeHeaderConfig?: UpdateRulesAttributeRequestRulesRuleActionsRemoveHeaderConfig; /** * @remarks * The configuration of the rewrite action. */ rewriteConfig?: UpdateRulesAttributeRequestRulesRuleActionsRewriteConfig; /** * @remarks * The throttling configuration. */ trafficLimitConfig?: UpdateRulesAttributeRequestRulesRuleActionsTrafficLimitConfig; /** * @remarks * The traffic mirroring configuration. */ trafficMirrorConfig?: UpdateRulesAttributeRequestRulesRuleActionsTrafficMirrorConfig; /** * @remarks * The type of the forwarding rule action. * * This parameter is required. * * @example * ForwardGroup */ type?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsCookieConfigValues extends $dara.Model { /** * @remarks * The key of the cookie. * * @example * key */ key?: string; /** * @remarks * The value of the cookie. * * @example * value */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsCookieConfig extends $dara.Model { /** * @remarks * The list of cookie key-value pairs. */ values?: UpdateRulesAttributeRequestRulesRuleConditionsCookieConfigValues[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsHeaderConfig extends $dara.Model { /** * @remarks * The key of the HTTP header. * * @example * key */ key?: string; /** * @remarks * The list of HTTP header values. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsHostConfig extends $dara.Model { /** * @remarks * The list of hostnames. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsMethodConfig extends $dara.Model { /** * @remarks * The list of HTTP request methods. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsPathConfig extends $dara.Model { /** * @remarks * The list of path conditions. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsQueryStringConfigValues extends $dara.Model { /** * @remarks * The key of the query string. * * @example * account */ key?: string; /** * @remarks * The value of the query string. * * @example * on */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsQueryStringConfig extends $dara.Model { /** * @remarks * The list of query string key-value pairs. */ values?: UpdateRulesAttributeRequestRulesRuleConditionsQueryStringConfigValues[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsResponseHeaderConfig extends $dara.Model { /** * @remarks * The key of the response header. * * @example * test */ key?: string; /** * @remarks * The values of the response header. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsResponseStatusCodeConfig extends $dara.Model { /** * @remarks * The response status codes. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditionsSourceIpConfig extends $dara.Model { /** * @remarks * One or more IP addresses or CIDR blocks. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRulesRuleConditions extends $dara.Model { /** * @remarks * The configuration of the cookie-based condition. */ cookieConfig?: UpdateRulesAttributeRequestRulesRuleConditionsCookieConfig; /** * @remarks * The configuration of the header-based condition. */ headerConfig?: UpdateRulesAttributeRequestRulesRuleConditionsHeaderConfig; /** * @remarks * The configuration of the host-based condition. */ hostConfig?: UpdateRulesAttributeRequestRulesRuleConditionsHostConfig; /** * @remarks * The configuration of the method-based condition. */ methodConfig?: UpdateRulesAttributeRequestRulesRuleConditionsMethodConfig; /** * @remarks * The configuration of the path-based condition. */ pathConfig?: UpdateRulesAttributeRequestRulesRuleConditionsPathConfig; /** * @remarks * The configuration of the query string-based condition. */ queryStringConfig?: UpdateRulesAttributeRequestRulesRuleConditionsQueryStringConfig; /** * @remarks * The configuration of the response header-based condition. */ responseHeaderConfig?: UpdateRulesAttributeRequestRulesRuleConditionsResponseHeaderConfig; /** * @remarks * The configuration of the response status code-based condition. */ responseStatusCodeConfig?: UpdateRulesAttributeRequestRulesRuleConditionsResponseStatusCodeConfig; /** * @remarks * The configuration for matching service traffic based on the source IP address. */ sourceIpConfig?: UpdateRulesAttributeRequestRulesRuleConditionsSourceIpConfig; /** * @remarks * The type of the condition. * * @example * Header */ type?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequestRules extends $dara.Model { /** * @remarks * The priority of the forwarding rule. * * @example * 80 */ priority?: number; /** * @remarks * The list of forwarding rule actions. */ ruleActions?: UpdateRulesAttributeRequestRulesRuleActions[]; /** * @remarks * The list of forwarding rule conditions. */ ruleConditions?: UpdateRulesAttributeRequestRulesRuleConditions[]; /** * @remarks * The forwarding rule ID. * * This parameter is required. * * @example * rule-n4hfecmmtmfl****** */ ruleId?: string; /** * @remarks * The name of the forwarding rule. * * @example * rule_111 */ ruleName?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRulesAttributeRequest extends $dara.Model { /** * @remarks * The client token that is used to ensure the idempotence of the request. * * Make sure that the client token is unique among different requests. The client token can contain only ASCII characters. * * > If you do not specify this parameter, the system automatically uses the **RequestId** of the API request as the **ClientToken**. The **RequestId** of each API request is different. * * @example * 123e4567-e89b-12d3-a456-42665544*** */ clientToken?: string; /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - **true**: performs a dry run. The system checks the required parameters, request format, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. In this case, the properties of the forwarding rules are not updated. * * - **false** (default): sends a normal request. After the request passes the check, the system returns an `HTTP 2xx` status code and starts the update. * * @example * false */ dryRun?: boolean; /** * @remarks * The list of forwarding rules. * * This parameter is required. */ rules?: UpdateRulesAttributeRequestRules[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }