"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.reEncryptsOutput = exports.reEncrypts = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of kms re encrypts
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const encryptStable = new volcengine.kms.Ciphertext("encryptStable", {
 *     keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
 *     plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
 * });
 * const reEncryptChanging = volcengine.kms.getReEncryptsOutput({
 *     newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc",
 *     sourceCiphertextBlob: encryptStable.ciphertextBlob,
 * });
 * ```
 */
/** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */
function reEncrypts(args, opts) {
    pulumi.log.warn("reEncrypts is deprecated: volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts");
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:kms/reEncrypts:ReEncrypts", {
        "newEncryptionContext": args.newEncryptionContext,
        "newKeyId": args.newKeyId,
        "newKeyName": args.newKeyName,
        "newKeyringName": args.newKeyringName,
        "oldEncryptionContext": args.oldEncryptionContext,
        "outputFile": args.outputFile,
        "sourceCiphertextBlob": args.sourceCiphertextBlob,
    }, opts);
}
exports.reEncrypts = reEncrypts;
/**
 * Use this data source to query detailed information of kms re encrypts
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const encryptStable = new volcengine.kms.Ciphertext("encryptStable", {
 *     keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
 *     plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
 * });
 * const reEncryptChanging = volcengine.kms.getReEncryptsOutput({
 *     newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc",
 *     sourceCiphertextBlob: encryptStable.ciphertextBlob,
 * });
 * ```
 */
/** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */
function reEncryptsOutput(args, opts) {
    return pulumi.output(args).apply((a) => reEncrypts(a, opts));
}
exports.reEncryptsOutput = reEncryptsOutput;
//# sourceMappingURL=reEncrypts.js.map