UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

82 lines (81 loc) 2.57 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get a list of WAF policies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const policyName = config.requireObject("policyName"); * const enterpriseProjectId = config.requireObject("enterpriseProjectId"); * const test = huaweicloud.Waf.getPolicies({ * name: policyName, * enterpriseProjectId: enterpriseProjectId, * }); * ``` */ export declare function getPolicies(args?: GetPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetPoliciesResult>; /** * A collection of arguments for invoking getPolicies. */ export interface GetPoliciesArgs { /** * Specifies the enterprise project ID of WAF policies. * For enterprise users, if omitted, default enterprise project will be used. */ enterpriseProjectId?: string; /** * Specifies the policy name used for matching. The value is case-sensitive and supports * fuzzy matching. */ name?: string; /** * Specifies the region in which to obtain the WAF policies. If omitted, * the provider-level region will be used. */ region?: string; } /** * A collection of values returned by getPolicies. */ export interface GetPoliciesResult { readonly enterpriseProjectId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The WAF policy name. */ readonly name?: string; /** * A list of WAF policies. */ readonly policies: outputs.Waf.GetPoliciesPolicy[]; readonly region: string; } export declare function getPoliciesOutput(args?: GetPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPoliciesResult>; /** * A collection of arguments for invoking getPolicies. */ export interface GetPoliciesOutputArgs { /** * Specifies the enterprise project ID of WAF policies. * For enterprise users, if omitted, default enterprise project will be used. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the policy name used for matching. The value is case-sensitive and supports * fuzzy matching. */ name?: pulumi.Input<string>; /** * Specifies the region in which to obtain the WAF policies. If omitted, * the provider-level region will be used. */ region?: pulumi.Input<string>; }