"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.getDataKeysOutput = exports.getDataKeys = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of kms data keys
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const dataKey = volcengine.kms.getDataKeys({
 *     keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
 *     numberOfBytes: 1024,
 * });
 * const default = dataKey.then(dataKey => volcengine.kms.getPlaintexts({
 *     ciphertextBlob: dataKey.dataKeyInfos?.[0]?.ciphertextBlob,
 * }));
 * ```
 */
function getDataKeys(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:kms/getDataKeys:getDataKeys", {
        "encryptionContext": args.encryptionContext,
        "keyId": args.keyId,
        "keyName": args.keyName,
        "keyringName": args.keyringName,
        "numberOfBytes": args.numberOfBytes,
        "outputFile": args.outputFile,
    }, opts);
}
exports.getDataKeys = getDataKeys;
/**
 * Use this data source to query detailed information of kms data keys
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const dataKey = volcengine.kms.getDataKeys({
 *     keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
 *     numberOfBytes: 1024,
 * });
 * const default = dataKey.then(dataKey => volcengine.kms.getPlaintexts({
 *     ciphertextBlob: dataKey.dataKeyInfos?.[0]?.ciphertextBlob,
 * }));
 * ```
 */
function getDataKeysOutput(args, opts) {
    return pulumi.output(args).apply((a) => getDataKeys(a, opts));
}
exports.getDataKeysOutput = getDataKeysOutput;
//# sourceMappingURL=getDataKeys.js.map