@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
45 lines • 1.68 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.getSecgroupRulesOutput = exports.getSecgroupRules = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the list of the available HuaweiCloud security group rules.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const securityGroupId = config.requireObject("securityGroupId");
* const test = huaweicloud.Vpc.getSecgroupRules({
* securityGroupId: securityGroupId,
* });
* ```
*/
function getSecgroupRules(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Vpc/getSecgroupRules:getSecgroupRules", {
"action": args.action,
"description": args.description,
"direction": args.direction,
"protocol": args.protocol,
"region": args.region,
"remoteGroupId": args.remoteGroupId,
"ruleId": args.ruleId,
"securityGroupId": args.securityGroupId,
}, opts);
}
exports.getSecgroupRules = getSecgroupRules;
function getSecgroupRulesOutput(args, opts) {
return pulumi.output(args).apply(a => getSecgroupRules(a, opts));
}
exports.getSecgroupRulesOutput = getSecgroupRulesOutput;
//# sourceMappingURL=getSecgroupRules.js.map