UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

119 lines (118 loc) 3.26 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of CFW IPS basic protection rules. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const objectId = config.requireObject("objectId"); * const test = huaweicloud.Cfw.getIpsRules({ * objectId: objectId, * }); * ``` */ export declare function getIpsRules(args: GetIpsRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetIpsRulesResult>; /** * A collection of arguments for invoking getIpsRules. */ export interface GetIpsRulesArgs { /** * Specifies the enterprise project ID. */ enterpriseProjectId?: string; /** * Specifies the IPS rule ID. */ ipsId?: string; /** * Specifies the IPS rule name. * This parameter supports fuzzy search. */ ipsNameLike?: string; /** * Specifies the IPS rule status. * The valid value can be **OBSERVE**, **ENABLE**, or **CLOSE**. */ ipsStatus?: string; /** * Specifies whether to check for new update rules. */ isUpdatedIpsRuleQueried?: boolean; /** * Specifies the protected object ID. */ objectId: string; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: string; } /** * A collection of values returned by getIpsRules. */ export interface GetIpsRulesResult { readonly enterpriseProjectId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The IPS rule ID. */ readonly ipsId?: string; readonly ipsNameLike?: string; /** * The current status of the IPS rule. */ readonly ipsStatus?: string; readonly isUpdatedIpsRuleQueried?: boolean; readonly objectId: string; /** * The IPS rule list. */ readonly records: outputs.Cfw.GetIpsRulesRecord[]; readonly region: string; } export declare function getIpsRulesOutput(args: GetIpsRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetIpsRulesResult>; /** * A collection of arguments for invoking getIpsRules. */ export interface GetIpsRulesOutputArgs { /** * Specifies the enterprise project ID. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the IPS rule ID. */ ipsId?: pulumi.Input<string>; /** * Specifies the IPS rule name. * This parameter supports fuzzy search. */ ipsNameLike?: pulumi.Input<string>; /** * Specifies the IPS rule status. * The valid value can be **OBSERVE**, **ENABLE**, or **CLOSE**. */ ipsStatus?: pulumi.Input<string>; /** * Specifies whether to check for new update rules. */ isUpdatedIpsRuleQueried?: pulumi.Input<boolean>; /** * Specifies the protected object ID. */ objectId: pulumi.Input<string>; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; }