UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

148 lines (147 loc) 3.79 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of waf cc rules * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.waf.getCcRules({ * ccTypes: [1], * host: "www.tf-test.com", * pathOrderBy: "ASC", * ruleName: "tf", * }); * ``` */ export declare function getCcRules(args: GetCcRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetCcRulesResult>; /** * A collection of arguments for invoking getCcRules. */ export interface GetCcRulesArgs { /** * The actions performed on subsequent requests after meeting the statistical conditions. */ ccTypes?: number[]; /** * Website domain names that require the setting of protection rules. */ host: string; /** * A Name Regex of Resource. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The list shows the order. */ pathOrderBy: string; /** * Search by rule name in a fuzzy manner. */ ruleName?: string; /** * Search precisely according to the rule ID. */ ruleTag?: string; /** * Fuzzy search by the requested path. */ url?: string; } /** * A collection of values returned by getCcRules. */ export interface GetCcRulesResult { /** * The actions performed on subsequent requests after meeting the statistical conditions. */ readonly ccTypes?: number[]; /** * The collection of query. */ readonly datas: outputs.waf.GetCcRulesData[]; /** * Protected website domain names. */ readonly host: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly nameRegex?: string; readonly outputFile?: string; readonly pathOrderBy: string; readonly ruleName?: string; /** * Rule label, that is, the complete rule ID. */ readonly ruleTag?: string; /** * The total count of query. */ readonly totalCount: number; /** * The requested path. */ readonly url?: string; } /** * Use this data source to query detailed information of waf cc rules * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.waf.getCcRules({ * ccTypes: [1], * host: "www.tf-test.com", * pathOrderBy: "ASC", * ruleName: "tf", * }); * ``` */ export declare function getCcRulesOutput(args: GetCcRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCcRulesResult>; /** * A collection of arguments for invoking getCcRules. */ export interface GetCcRulesOutputArgs { /** * The actions performed on subsequent requests after meeting the statistical conditions. */ ccTypes?: pulumi.Input<pulumi.Input<number>[]>; /** * Website domain names that require the setting of protection rules. */ host: pulumi.Input<string>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The list shows the order. */ pathOrderBy: pulumi.Input<string>; /** * Search by rule name in a fuzzy manner. */ ruleName?: pulumi.Input<string>; /** * Search precisely according to the rule ID. */ ruleTag?: pulumi.Input<string>; /** * Fuzzy search by the requested path. */ url?: pulumi.Input<string>; }