UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

52 lines 1.91 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.getCiphertextsOutput = exports.getCiphertexts = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of kms ciphertexts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const encrypted = volcengine.kms.getCiphertexts({ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * ``` */ function getCiphertexts(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:kms/getCiphertexts:getCiphertexts", { "encryptionContext": args.encryptionContext, "keyId": args.keyId, "keyName": args.keyName, "keyringName": args.keyringName, "outputFile": args.outputFile, "plaintext": args.plaintext, }, opts); } exports.getCiphertexts = getCiphertexts; /** * Use this data source to query detailed information of kms ciphertexts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const encrypted = volcengine.kms.getCiphertexts({ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * ``` */ function getCiphertextsOutput(args, opts) { return pulumi.output(args).apply((a) => getCiphertexts(a, opts)); } exports.getCiphertextsOutput = getCiphertextsOutput; //# sourceMappingURL=getCiphertexts.js.map