"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.getKeyPairsOutput = exports.getKeyPairs = 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,
 * });
 * ```
 */
function getKeyPairs(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:ecs/getKeyPairs:getKeyPairs", {
        "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.getKeyPairs = getKeyPairs;
/**
 * 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,
 * });
 * ```
 */
function getKeyPairsOutput(args, opts) {
    return pulumi.output(args).apply((a) => getKeyPairs(a, opts));
}
exports.getKeyPairsOutput = getKeyPairsOutput;
//# sourceMappingURL=getKeyPairs.js.map