"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.keyPairsOutput = exports.keyPairs = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of ecs key pairs
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooKeyPair = new volcengine.ecs.KeyPair("fooKeyPair", {
 *     keyPairName: "acc-test-key-name",
 *     description: "acc-test",
 * });
 * const fooKeyPairs = volcengine.ecs.getKeyPairsOutput({
 *     keyPairName: fooKeyPair.keyPairName,
 * });
 * ```
 */
/** @deprecated volcengine.ecs.KeyPairs has been deprecated in favor of volcengine.ecs.getKeyPairs */
function keyPairs(args, opts) {
    pulumi.log.warn("keyPairs is deprecated: volcengine.ecs.KeyPairs has been deprecated in favor of volcengine.ecs.getKeyPairs");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:ecs/keyPairs:KeyPairs", {
        "fingerPrint": args.fingerPrint,
        "keyPairIds": args.keyPairIds,
        "keyPairName": args.keyPairName,
        "keyPairNames": args.keyPairNames,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "projectName": args.projectName,
        "tags": args.tags,
    }, opts);
}
exports.keyPairs = keyPairs;
/**
 * Use this data source to query detailed information of ecs key pairs
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooKeyPair = new volcengine.ecs.KeyPair("fooKeyPair", {
 *     keyPairName: "acc-test-key-name",
 *     description: "acc-test",
 * });
 * const fooKeyPairs = volcengine.ecs.getKeyPairsOutput({
 *     keyPairName: fooKeyPair.keyPairName,
 * });
 * ```
 */
/** @deprecated volcengine.ecs.KeyPairs has been deprecated in favor of volcengine.ecs.getKeyPairs */
function keyPairsOutput(args, opts) {
    return pulumi.output(args).apply((a) => keyPairs(a, opts));
}
exports.keyPairsOutput = keyPairsOutput;
//# sourceMappingURL=keyPairs.js.map