UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

79 lines (78 loc) 2.7 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get a list of WAF reference tables. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const enterpriseProjectId = config.requireObject("enterpriseProjectId"); * const test = huaweicloud.Waf.getReferenceTables({ * name: "reference_table_name", * enterpriseProjectId: enterpriseProjectId, * }); * ``` */ export declare function getReferenceTables(args?: GetReferenceTablesArgs, opts?: pulumi.InvokeOptions): Promise<GetReferenceTablesResult>; /** * A collection of arguments for invoking getReferenceTables. */ export interface GetReferenceTablesArgs { /** * Specifies the enterprise project ID of WAF reference tables. * For enterprise users, if omitted, default enterprise project will be used. */ enterpriseProjectId?: string; /** * Specifies the name of the reference table. The value is case-sensitive and matches exactly. */ name?: string; /** * Specifies the region in which to create the WAF reference table resource. * If omitted, the provider-level region will be used. */ region?: string; } /** * A collection of values returned by getReferenceTables. */ export interface GetReferenceTablesResult { readonly enterpriseProjectId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name of the reference table. The maximum length is `64` characters. */ readonly name?: string; readonly region: string; /** * A list of WAF reference tables. */ readonly tables: outputs.Waf.GetReferenceTablesTable[]; } export declare function getReferenceTablesOutput(args?: GetReferenceTablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetReferenceTablesResult>; /** * A collection of arguments for invoking getReferenceTables. */ export interface GetReferenceTablesOutputArgs { /** * Specifies the enterprise project ID of WAF reference tables. * For enterprise users, if omitted, default enterprise project will be used. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the name of the reference table. The value is case-sensitive and matches exactly. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the WAF reference table resource. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; }