@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
63 lines • 2.52 kB
JavaScript
;
// *** 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.getReEncryptsOutput = exports.getReEncrypts = 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,
* });
* ```
*/
function getReEncrypts(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:kms/getReEncrypts:getReEncrypts", {
"newEncryptionContext": args.newEncryptionContext,
"newKeyId": args.newKeyId,
"newKeyName": args.newKeyName,
"newKeyringName": args.newKeyringName,
"oldEncryptionContext": args.oldEncryptionContext,
"outputFile": args.outputFile,
"sourceCiphertextBlob": args.sourceCiphertextBlob,
}, opts);
}
exports.getReEncrypts = getReEncrypts;
/**
* 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,
* });
* ```
*/
function getReEncryptsOutput(args, opts) {
return pulumi.output(args).apply((a) => getReEncrypts(a, opts));
}
exports.getReEncryptsOutput = getReEncryptsOutput;
//# sourceMappingURL=getReEncrypts.js.map