@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
169 lines (168 loc) • 4.29 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of waf acl rules
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.waf.getAclRules({
* aclType: "Block",
* actions: ["observe"],
* defenceHosts: ["www.tf-test.com"],
* enables: [1],
* projectName: "default",
* ruleName: "tf-test",
* timeOrderBy: "ASC",
* });
* ```
*/
export declare function getAclRules(args: GetAclRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetAclRulesResult>;
/**
* A collection of arguments for invoking getAclRules.
*/
export interface GetAclRulesArgs {
/**
* The types of access control rules.
*/
aclType: string;
/**
* Action to be taken on requests that match the rule.
*/
actions?: string[];
/**
* The list of queried domain names.
*/
defenceHosts?: string[];
/**
* The enabled status of the rule.
*/
enables?: number[];
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The name of the project to which your domain names belong.
*/
projectName?: string;
/**
* Rule name, fuzzy search.
*/
ruleName?: string;
/**
* Rule unique identifier, precise search.
*/
ruleTag?: string;
/**
* The list shows the timing sequence.
*/
timeOrderBy?: string;
}
/**
* A collection of values returned by getAclRules.
*/
export interface GetAclRulesResult {
readonly aclType: string;
/**
* Action to be taken on requests that match the rule.
*/
readonly actions?: string[];
readonly defenceHosts?: string[];
/**
* Whether to enable the rule.
*/
readonly enables?: number[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly nameRegex?: string;
readonly outputFile?: string;
readonly projectName?: string;
readonly ruleName?: string;
/**
* Rule unique identifier.
*/
readonly ruleTag?: string;
/**
* Details of the rules.
*/
readonly rules: outputs.waf.GetAclRulesRule[];
readonly timeOrderBy?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of waf acl rules
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.waf.getAclRules({
* aclType: "Block",
* actions: ["observe"],
* defenceHosts: ["www.tf-test.com"],
* enables: [1],
* projectName: "default",
* ruleName: "tf-test",
* timeOrderBy: "ASC",
* });
* ```
*/
export declare function getAclRulesOutput(args: GetAclRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclRulesResult>;
/**
* A collection of arguments for invoking getAclRules.
*/
export interface GetAclRulesOutputArgs {
/**
* The types of access control rules.
*/
aclType: pulumi.Input<string>;
/**
* Action to be taken on requests that match the rule.
*/
actions?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The list of queried domain names.
*/
defenceHosts?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The enabled status of the rule.
*/
enables?: pulumi.Input<pulumi.Input<number>[]>;
/**
* A Name Regex of Resource.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The name of the project to which your domain names belong.
*/
projectName?: pulumi.Input<string>;
/**
* Rule name, fuzzy search.
*/
ruleName?: pulumi.Input<string>;
/**
* Rule unique identifier, precise search.
*/
ruleTag?: pulumi.Input<string>;
/**
* The list shows the timing sequence.
*/
timeOrderBy?: pulumi.Input<string>;
}