"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.gatewaysOutput = exports.gateways = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of vpn gateways
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: "cn-beijing-a",
 *     vpcId: fooVpc.id,
 * });
 * const fooGateway = new volcengine.vpn.Gateway("fooGateway", {
 *     vpcId: fooVpc.id,
 *     subnetId: fooSubnet.id,
 *     bandwidth: 20,
 *     vpnGatewayName: "acc-test",
 *     description: "acc-test",
 *     period: 2,
 *     projectName: "default",
 * });
 * const fooGateways = volcengine.vpn.getGatewaysOutput({
 *     ids: [fooGateway.id],
 * });
 * ```
 */
/** @deprecated volcengine.vpn.Gateways has been deprecated in favor of volcengine.vpn.getGateways */
function gateways(args, opts) {
    pulumi.log.warn("gateways is deprecated: volcengine.vpn.Gateways has been deprecated in favor of volcengine.vpn.getGateways");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:vpn/gateways:Gateways", {
        "ids": args.ids,
        "ipAddress": args.ipAddress,
        "ipsecEnabled": args.ipsecEnabled,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "projectName": args.projectName,
        "sslEnabled": args.sslEnabled,
        "status": args.status,
        "subnetId": args.subnetId,
        "tags": args.tags,
        "vpcId": args.vpcId,
        "vpnGatewayNames": args.vpnGatewayNames,
    }, opts);
}
exports.gateways = gateways;
/**
 * Use this data source to query detailed information of vpn gateways
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: "cn-beijing-a",
 *     vpcId: fooVpc.id,
 * });
 * const fooGateway = new volcengine.vpn.Gateway("fooGateway", {
 *     vpcId: fooVpc.id,
 *     subnetId: fooSubnet.id,
 *     bandwidth: 20,
 *     vpnGatewayName: "acc-test",
 *     description: "acc-test",
 *     period: 2,
 *     projectName: "default",
 * });
 * const fooGateways = volcengine.vpn.getGatewaysOutput({
 *     ids: [fooGateway.id],
 * });
 * ```
 */
/** @deprecated volcengine.vpn.Gateways has been deprecated in favor of volcengine.vpn.getGateways */
function gatewaysOutput(args, opts) {
    return pulumi.output(args).apply((a) => gateways(a, opts));
}
exports.gatewaysOutput = gatewaysOutput;
//# sourceMappingURL=gateways.js.map