import * as $dara from '@darabonba/typescript'; export declare class UpdateRuleAttributeRequestRuleActionsCorsConfig extends $dara.Model { /** * @remarks * Specifies whether to allow credentials. Valid values: * * - **on**: allows credentials. * - **off**: does not allow credentials. * * @example * on */ allowCredentials?: string; /** * @remarks * The list of headers allowed for cross-origin access. */ allowHeaders?: string[]; /** * @remarks * The HTTP methods allowed for cross-origin access. */ allowMethods?: string[]; /** * @remarks * The list of allowed origins. You can configure a single element `*` or one or more values. * - Each value must start with `http://` or `https://`, followed by a valid domain name or a first-level wildcard domain name (for example, `http://*.test.abc.example.com`). * - Each value can optionally include a port. Port range: **1** to **65535**. */ allowOrigin?: string[]; /** * @remarks * The list of headers that can be exposed. */ exposeHeaders?: string[]; /** * @remarks * The maximum cache time for preflight requests in the browser. Unit: seconds. * * Valid values: **-1** to **172800**. * * @example * 1000 */ maxAge?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsFixedResponseConfig extends $dara.Model { /** * @remarks * The fixed content to return. The content can be up to 1 KB in size and can contain only ASCII characters. * * @example * dssacav */ content?: string; /** * @remarks * The format of the fixed content to return. * * Valid values: **text/plain**, **text/css**, **text/html**, **application/javascript**, and **application/json**. * * @example * text/plain */ contentType?: string; /** * @remarks * The HTTP response code to return. Only numeric strings in the **2xx**, **4xx**, and **5xx** format are supported, where **x** is any digit. * * @example * 200 */ httpCode?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsForwardGroupConfigServerGroupStickySession extends $dara.Model { /** * @remarks * Specifies whether to enable session persistence. Valid values: * * - **true**: enables session persistence. * - **false** (default): disables session persistence. * * @example * false */ enabled?: boolean; /** * @remarks * The timeout period. Unit: seconds. Valid values: 1 to 86400. * * @example * 2 */ timeout?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsForwardGroupConfigServerGroupTuples extends $dara.Model { /** * @remarks * The ID of the destination server group to which requests are forwarded. * * @example * sg--atstuj3rtoptyui**** */ serverGroupId?: string; /** * @remarks * The weight. A larger value specifies a higher weight, which means more requests are forwarded to the server group. Valid values: **0** to **100**. * * - If only one destination server group is specified, the default weight is **100** when no weight is specified. * * - If more than one destination server group is specified, you must specify the weight value. * * @example * 30 */ weight?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsForwardGroupConfig extends $dara.Model { /** * @remarks * The session persistence configuration between server groups. */ serverGroupStickySession?: UpdateRuleAttributeRequestRuleActionsForwardGroupConfigServerGroupStickySession; /** * @remarks * The destination server groups to which requests are forwarded. */ serverGroupTuples?: UpdateRuleAttributeRequestRuleActionsForwardGroupConfigServerGroupTuples[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsInsertHeaderConfig extends $dara.Model { /** * @remarks * Specifies whether to overwrite the value in the request. Valid values: * - **true**: overwrites the value. * - **false** (default): does not overwrite the value. * * @example * false */ coverEnabled?: boolean; /** * @remarks * The name of the header to insert. The name must be 1 to 40 characters in length and can contain uppercase and lowercase letters a to z, digits, underscores (_), and hyphens (-). The header name specified in **InsertHeaderConfig** must be unique. * * > The header name cannot be set to the following fields (case-insensitive): `slb-id`, `slb-ip`, `x-forwarded-for`, `x-forwarded-proto`, `x-forwarded-eip`, `x-forwarded-port`, `x-forwarded-client-srcport`, `x-forwarded-host`, `connection`, `upgrade`, `content-length`, `transfer-encoding`, `keep-alive`, `te`, `host`, `cookie`, `remoteip`, `authority`. * * @example * key */ key?: string; /** * @remarks * The content of the header to insert. * * - If **ValueType** is set to **SystemDefined**, valid values are: * - **ClientSrcPort**: the client port. * - **ClientSrcIp**: the client IP address. * - **Protocol**: the protocol used by the client request (HTTP or HTTPS). * - **SLBId**: the Application Load Balancer (ALB) instance ID. * - **SLBPort**: the Application Load Balancer (ALB) instance listener port. * - If **ValueType** is set to **UserDefined**: you can specify a custom header value. The value must be 1 to 128 characters in length and can contain wildcards asterisks (*), question marks (?), and printable characters whose ASCII values are `ch >= 32 && ch < 127`. The value cannot contain `"`. The value cannot start or end with a space. The value cannot end with `\\`. * - If **ValueType** is set to **ReferenceHeader**: you can reference a field in the request header. The value must be 1 to 128 characters in length and can contain lowercase letters a to z, digits, hyphens (-), and underscores (_). * * @example * UserDefined */ value?: string; /** * @remarks * The content type of the header value. Valid values: * * - **UserDefined**: a custom header value. * * - **ReferenceHeader**: references a field in the request header. * * - **SystemDefined**: a system-defined header value. * * @example * UserDefined */ valueType?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsRedirectConfig extends $dara.Model { /** * @remarks * The host to redirect to. Valid values: * - **${host}** (default): this value cannot be concatenated with other characters. * - Other values. Character set and format restrictions are as follows: * - The hostname must be 3 to 256 characters in length and can contain lowercase letters a to z, digits, hyphens (-), periods (.), asterisks (*), and question marks (?). * - The hostname must contain at least one period (.). Periods (.) cannot appear at the beginning or end. * - The rightmost domain label can contain only letters and wildcards. It cannot contain digits or hyphens (-). * - Hyphens (-) cannot appear at the beginning or end of other domain labels. * - Asterisks (*) and question marks (?) can appear at any position of a domain label. * * @example * www.example.com */ host?: string; /** * @remarks * The redirect type. Valid values: **301**, **302**, **303**, **307**, and **308**. * * @example * 301 */ httpCode?: string; /** * @remarks * The path to redirect to. Valid values: * - **${path}** (default): you can reference **${host}**, **${protocol}**, and **${port}**. Each variable can appear at most once. These variables can be used together or concatenated with characters within the allowed value range listed below. * - Other values. Character set and format restrictions are as follows: * - The path must be 1 to 256 characters in length. * - The path must start with a forward slash (/) and can contain letters, digits, and the following special characters: `$-_.+/&~@:`. The path cannot contain `"%#;!()[]^,"\\"`. Asterisks (*) and question marks (?) can be used as wildcards. * * @example * /test */ path?: string; /** * @remarks * The port to redirect to. Valid values: * - **${port}** (default): this value can only be used alone and cannot be concatenated with other characters. * - Other values: **1** to **63335**. * * @example * 10 */ port?: string; /** * @remarks * The protocol to redirect to. Valid values: * * - **${protocol}** (default): this value cannot be concatenated with other characters. * * - **HTTP** or **HTTPS**. * * > HTTPS listeners support only redirects to HTTPS. * * @example * HTTP */ protocol?: string; /** * @remarks * The query string to redirect to. Valid values: * - **${query}** (default): you can reference **${host}**, **${protocol}**, and **${port}**. Each variable can appear at most once. These variables can be used together or concatenated with characters within the allowed value range listed below. * - Other values. Character set and format restrictions are as follows: * - The query string must be 1 to 128 characters in length. * - The query string can contain printable characters but cannot contain spaces or `#[]{}\\|<>"`. Letters must be lowercase. * * @example * quert */ query?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsRemoveHeaderConfig extends $dara.Model { /** * @remarks * The name of the header to remove. The name must be 1 to 40 characters in length and can contain uppercase and lowercase letters a to z, digits, underscores (_), and hyphens (-). The header name cannot be duplicated in RemoveHeader. * * - Request direction (Direction is set to Request): the header name cannot be set to the following fields (case-insensitive): `slb-id`, `slb-ip`, `x-forwarded-for`, `x-forwarded-proto`, `x-forwarded-eip`, `x-forwarded-port`, `x-forwarded-client-srcport`, `x-forwarded-host`, `connection`, `upgrade`, `content-length`, `transfer-encoding`, `keep-alive`, `te`, `host`, `cookie`, `remoteip`, `authority`. * - Response direction (Direction is set to Response): the header name cannot be set to the following fields (case-insensitive): `connection`, `upgrade`, `content-length`, `transfer-encoding`. * * @example * test */ key?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsRewriteConfig extends $dara.Model { /** * @remarks * The destination host address for internal redirects. Valid values: * - **${host}** (default): this value cannot be concatenated with other characters. * * - Other values. Character set and format restrictions are as follows: * * - The hostname must be 3 to 256 characters in length and can contain lowercase letters a to z, digits, hyphens (-), periods (.), asterisks (*), and question marks (?). * * - The hostname must contain at least one period (.). Periods (.) cannot appear at the beginning or end. * * - The rightmost domain label can contain only letters and wildcards. It cannot contain digits or hyphens (-). * * - Hyphens (-) cannot appear at the beginning or end of other domain labels. Asterisks (*) and question marks (?) can appear at any position of a domain label. * * @example * www.example.com */ host?: string; /** * @remarks * The path to redirect to. Valid values: * - **${path}** (default): you can reference **${host}**, **${protocol}**, and **${port}**. Each variable can appear at most once. These variables can be used together or concatenated with characters within the allowed value range listed below. * - Other values. Character set and format restrictions are as follows: * - The path must be 1 to 256 characters in length. * - The path must start with a forward slash (/) and can contain letters, digits, and the following special characters: `$-_.+/&~@:`. The path cannot contain `"%#;!()[]^,"\\"`. Asterisks (*) and question marks (?) can be used as wildcards. * * @example * /tsdf */ path?: string; /** * @remarks * The query string for internal redirects. Valid values: * - **${query}** (default): you can reference **${host}**, **${protocol}**, and **${port}**. Each variable can appear at most once. These variables can be used together or concatenated with characters within the allowed value range listed below. * - Other values. Character set and format restrictions are as follows: * - The query string must be 1 to 128 characters in length. * - The query string can contain printable characters but cannot contain spaces or `#[]{}\\|<>"`. Letters must be lowercase. * * @example * quedsa */ query?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsTrafficLimitConfig extends $dara.Model { /** * @remarks * The QPS per IP address. Valid values: **1** to **1000000**. * * > If both **QPS** and **PerIpQps** are configured, the value of **PerIpQps** must be less than the value of **QPS**. * * @example * 80 */ perIpQps?: number; /** * @remarks * The queries per second (QPS). Valid values: **1** to **1000000**. * * @example * 100 */ QPS?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfigMirrorGroupConfigServerGroupTuples extends $dara.Model { /** * @remarks * The server group ID. * * @example * srg-00mkgijak0w4qgz9**** */ serverGroupId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfigMirrorGroupConfig extends $dara.Model { /** * @remarks * The configuration for mirroring traffic to a server group. */ serverGroupTuples?: UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfigMirrorGroupConfigServerGroupTuples[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfig extends $dara.Model { /** * @remarks * The configuration for mirroring traffic to a server group. */ mirrorGroupConfig?: UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfigMirrorGroupConfig; /** * @remarks * The type of the mirror target. Valid values: * - **ForwardGroupMirror**: mirrors traffic to a server group. * * @example * ForwardGroupMirror */ targetType?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleActions extends $dara.Model { /** * @remarks * The cross-origin resource sharing (CORS) configuration. */ corsConfig?: UpdateRuleAttributeRequestRuleActionsCorsConfig; /** * @remarks * The fixed response configuration. */ fixedResponseConfig?: UpdateRuleAttributeRequestRuleActionsFixedResponseConfig; /** * @remarks * The forward group configuration. */ forwardGroupConfig?: UpdateRuleAttributeRequestRuleActionsForwardGroupConfig; /** * @remarks * The insert header configuration. */ insertHeaderConfig?: UpdateRuleAttributeRequestRuleActionsInsertHeaderConfig; /** * @remarks * The priority of the action in the forwarding rule. Valid values: **1** to **50000**. Actions are performed in ascending order of priority. This value cannot be empty or duplicated. You can specify up to 20 action priorities. * * @example * 1 */ order?: number; /** * @remarks * The redirect configuration. You can add up to 20 redirects. */ redirectConfig?: UpdateRuleAttributeRequestRuleActionsRedirectConfig; /** * @remarks * The remove header configuration. */ removeHeaderConfig?: UpdateRuleAttributeRequestRuleActionsRemoveHeaderConfig; /** * @remarks * The rewrite configuration. */ rewriteConfig?: UpdateRuleAttributeRequestRuleActionsRewriteConfig; /** * @remarks * The traffic throttling configuration. */ trafficLimitConfig?: UpdateRuleAttributeRequestRuleActionsTrafficLimitConfig; /** * @remarks * The traffic mirroring configuration. */ trafficMirrorConfig?: UpdateRuleAttributeRequestRuleActionsTrafficMirrorConfig; /** * @remarks * The action type. You can add up to 11 action types. Valid values: * * - **ForwardGroup**: forwards requests to multiple virtual services. * * - **Redirect**: redirects requests. * * - **FixedResponse**: returns a fixed response. * * - **Rewrite**: rewrites requests. * * - **InsertHeader**: inserts a header. * * - **RemoveHeader**: deletes a header. * * - **TrafficLimit**: throttles traffic. * * - **TrafficMirror**: mirrors traffic. * * - **Cors**: enables cross-origin resource sharing (CORS). * * > A forwarding rule must contain one **ForwardGroup**, **Redirect**, or **FixedResponse** action. When this action coexists with other action types, it must be the last action to execute. * * @example * ForwardGroup */ type?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsCookieConfigValues extends $dara.Model { /** * @remarks * The cookie key. The key must be 1 to 100 characters in length and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The key cannot contain spaces or `#[]{}\\|<>&";`. * * @example * test */ key?: string; /** * @remarks * The cookie value. The value must be 1 to 128 characters in length and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or `#[]{}\\|<>&`. * * @example * test */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsCookieConfig extends $dara.Model { /** * @remarks * The cookie configuration. */ values?: UpdateRuleAttributeRequestRuleConditionsCookieConfigValues[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsHeaderConfig extends $dara.Model { /** * @remarks * The header key. The key must be 1 to 40 characters in length and can contain letters, digits, hyphens (-), and underscores (_). Cookie and Host are not supported. * * @example * Port */ key?: string; /** * @remarks * The header values. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsHostConfig extends $dara.Model { /** * @remarks * The hostnames. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsMethodConfig extends $dara.Model { /** * @remarks * The request methods. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsPathConfig extends $dara.Model { /** * @remarks * The forwarding paths. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsQueryStringConfigValues extends $dara.Model { /** * @remarks * The query string key. The key must be 1 to 100 characters in length and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The key cannot contain spaces or `#[]{}\\|<>&"`. * * @example * test */ key?: string; /** * @remarks * The query string value. The value must be 1 to 128 characters in length and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or `#[]{}\\|<>&"`. * * @example * test */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsQueryStringConfig extends $dara.Model { /** * @remarks * The query strings. You can add up to 20 query strings. */ values?: UpdateRuleAttributeRequestRuleConditionsQueryStringConfigValues[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsResponseHeaderConfig extends $dara.Model { /** * @remarks * The header key. * - The key must be 1 to 40 characters in length. * - The key can contain letters a to z, digits, hyphens (-), and underscores (_). * - Cookie and Host are not supported. * * @example * test */ key?: string; /** * @remarks * The header values. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsResponseStatusCodeConfig extends $dara.Model { /** * @remarks * The response status code list. */ values?: string[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequestRuleConditionsSourceIpConfig 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 UpdateRuleAttributeRequestRuleConditions extends $dara.Model { /** * @remarks * The cookie configuration. */ cookieConfig?: UpdateRuleAttributeRequestRuleConditionsCookieConfig; /** * @remarks * The header configuration. */ headerConfig?: UpdateRuleAttributeRequestRuleConditionsHeaderConfig; /** * @remarks * The host configuration. */ hostConfig?: UpdateRuleAttributeRequestRuleConditionsHostConfig; /** * @remarks * The request method configuration. */ methodConfig?: UpdateRuleAttributeRequestRuleConditionsMethodConfig; /** * @remarks * The path configuration for forwarding. */ pathConfig?: UpdateRuleAttributeRequestRuleConditionsPathConfig; /** * @remarks * The query string configuration. */ queryStringConfig?: UpdateRuleAttributeRequestRuleConditionsQueryStringConfig; /** * @remarks * The response header condition configuration. */ responseHeaderConfig?: UpdateRuleAttributeRequestRuleConditionsResponseHeaderConfig; /** * @remarks * The response status code configuration. */ responseStatusCodeConfig?: UpdateRuleAttributeRequestRuleConditionsResponseStatusCodeConfig; /** * @remarks * The source IP-service traffic matching configuration. You can add up to 5 source IP-service traffic matching conditions. */ sourceIpConfig?: UpdateRuleAttributeRequestRuleConditionsSourceIpConfig; /** * @remarks * The type of forwarding rule. You can add up to 7 types of forwarding rules. Valid values: * * - **Host**: host. * * - **Path**: path. * * - **Header**: HTTP header field. * * - **QueryString**: query string. * * - **Method**: request method. * * - **Cookie**: cookie. * * - **SourceIp**: source IP address. * * - **ResponseHeader**: response HTTP header field. * * - **ResponseStatusCode**: response status code. * * @example * Host */ type?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateRuleAttributeRequest extends $dara.Model { /** * @remarks * The client token that is used to ensure the idempotence of the request. * * You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. * * > If you do not specify this parameter, the system automatically uses the **RequestId** value as the **ClientToken** value. The **RequestId** value of each API request is different. * * @example * 5A2CFF0E-5718-45B5-9D4D-70B3FF3898 */ clientToken?: string; /** * @remarks * Specifies whether to perform only a dry run, without performing the actual request. Valid values: * * - **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * * - **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, an `HTTP 2xx` status code is returned and the operation is performed. * * @example * false */ dryRun?: boolean; /** * @remarks * The priority of the rule. Valid values: **1** to **10000**. A smaller value specifies a higher priority. * * > Rule priorities within the same listener must be unique. * * @example * 10 */ priority?: number; /** * @remarks * The forwarding rule actions. */ ruleActions?: UpdateRuleAttributeRequestRuleActions[]; /** * @remarks * The forwarding rule conditions. */ ruleConditions?: UpdateRuleAttributeRequestRuleConditions[]; /** * @remarks * The forwarding rule ID. * * This parameter is required. * * @example * rule-4dp5i6ea**** */ ruleId?: string; /** * @remarks * The name of the forwarding rule. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), hyphens (-), and spaces. The name must start with a letter, Chinese character, or digit. * * @example * rule-instance-test */ ruleName?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }