"use strict";
// *** 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.getSecurityGroupRulesOutput = exports.getSecurityGroupRules = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of security group rules
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const default = volcengine.vpc.getSecurityGroupRules({
 *     securityGroupId: "sg-13f2nau7x93wg3n6nu3z5sxib",
 * });
 * ```
 */
function getSecurityGroupRules(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:vpc/getSecurityGroupRules:getSecurityGroupRules", {
        "cidrIp": args.cidrIp,
        "direction": args.direction,
        "outputFile": args.outputFile,
        "protocol": args.protocol,
        "securityGroupId": args.securityGroupId,
        "sourceGroupId": args.sourceGroupId,
    }, opts);
}
exports.getSecurityGroupRules = getSecurityGroupRules;
/**
 * Use this data source to query detailed information of security group rules
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const default = volcengine.vpc.getSecurityGroupRules({
 *     securityGroupId: "sg-13f2nau7x93wg3n6nu3z5sxib",
 * });
 * ```
 */
function getSecurityGroupRulesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getSecurityGroupRules(a, opts));
}
exports.getSecurityGroupRulesOutput = getSecurityGroupRulesOutput;
//# sourceMappingURL=getSecurityGroupRules.js.map