"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.securityGroupRulesOutput = exports.securityGroupRules = 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",
 * });
 * ```
 */
/** @deprecated volcengine.vpc.SecurityGroupRules has been deprecated in favor of volcengine.vpc.getSecurityGroupRules */
function securityGroupRules(args, opts) {
    pulumi.log.warn("securityGroupRules is deprecated: volcengine.vpc.SecurityGroupRules has been deprecated in favor of volcengine.vpc.getSecurityGroupRules");
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:vpc/securityGroupRules:SecurityGroupRules", {
        "cidrIp": args.cidrIp,
        "direction": args.direction,
        "outputFile": args.outputFile,
        "protocol": args.protocol,
        "securityGroupId": args.securityGroupId,
        "sourceGroupId": args.sourceGroupId,
    }, opts);
}
exports.securityGroupRules = securityGroupRules;
/**
 * 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",
 * });
 * ```
 */
/** @deprecated volcengine.vpc.SecurityGroupRules has been deprecated in favor of volcengine.vpc.getSecurityGroupRules */
function securityGroupRulesOutput(args, opts) {
    return pulumi.output(args).apply((a) => securityGroupRules(a, opts));
}
exports.securityGroupRulesOutput = securityGroupRulesOutput;
//# sourceMappingURL=securityGroupRules.js.map