UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

57 lines 2.18 kB
"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.getPlaintextsOutput = exports.getPlaintexts = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of kms plaintexts * ## 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 decrypt = volcengine.kms.getPlaintextsOutput({ * ciphertextBlob: encryptStable.ciphertextBlob, * }); * ``` */ function getPlaintexts(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:kms/getPlaintexts:getPlaintexts", { "ciphertextBlob": args.ciphertextBlob, "encryptionContext": args.encryptionContext, "outputFile": args.outputFile, }, opts); } exports.getPlaintexts = getPlaintexts; /** * Use this data source to query detailed information of kms plaintexts * ## 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 decrypt = volcengine.kms.getPlaintextsOutput({ * ciphertextBlob: encryptStable.ciphertextBlob, * }); * ``` */ function getPlaintextsOutput(args, opts) { return pulumi.output(args).apply((a) => getPlaintexts(a, opts)); } exports.getPlaintextsOutput = getPlaintextsOutput; //# sourceMappingURL=getPlaintexts.js.map