UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

55 lines 2.23 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.ciphertextsOutput = exports.ciphertexts = 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==", * }); * ``` */ /** @deprecated volcengine.kms.Ciphertexts has been deprecated in favor of volcengine.kms.getCiphertexts */ function ciphertexts(args, opts) { pulumi.log.warn("ciphertexts is deprecated: volcengine.kms.Ciphertexts has been deprecated in favor of volcengine.kms.getCiphertexts"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:kms/ciphertexts:Ciphertexts", { "encryptionContext": args.encryptionContext, "keyId": args.keyId, "keyName": args.keyName, "keyringName": args.keyringName, "outputFile": args.outputFile, "plaintext": args.plaintext, }, opts); } exports.ciphertexts = ciphertexts; /** * 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==", * }); * ``` */ /** @deprecated volcengine.kms.Ciphertexts has been deprecated in favor of volcengine.kms.getCiphertexts */ function ciphertextsOutput(args, opts) { return pulumi.output(args).apply((a) => ciphertexts(a, opts)); } exports.ciphertextsOutput = ciphertextsOutput; //# sourceMappingURL=ciphertexts.js.map