@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
50 lines • 1.86 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIpsCustomRulesOutput = exports.getIpsCustomRules = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use the data source to get the list of CFW IPS custom rules.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const fwInstanceId = config.requireObject("fwInstanceId");
* const objectId = config.requireObject("objectId");
* const test = huaweicloud.Cfw.getIpsCustomRules({
* fwInstanceId: fwInstanceId,
* objectId: objectId,
* });
* ```
*/
function getIpsCustomRules(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Cfw/getIpsCustomRules:getIpsCustomRules", {
"actionType": args.actionType,
"affectedOs": args.affectedOs,
"attackType": args.attackType,
"enterpriseProjectId": args.enterpriseProjectId,
"fwInstanceId": args.fwInstanceId,
"ipsName": args.ipsName,
"objectId": args.objectId,
"protocol": args.protocol,
"region": args.region,
"severity": args.severity,
"software": args.software,
}, opts);
}
exports.getIpsCustomRules = getIpsCustomRules;
function getIpsCustomRulesOutput(args, opts) {
return pulumi.output(args).apply(a => getIpsCustomRules(a, opts));
}
exports.getIpsCustomRulesOutput = getIpsCustomRulesOutput;
//# sourceMappingURL=getIpsCustomRules.js.map