@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
66 lines • 2.82 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.getAsymmetricPlaintextsOutput = exports.getAsymmetricPlaintexts = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of kms asymmetric 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.AsymmetricCiphertext("encryptStable", {
* keyId: "9601e1af-ad69-42df-****-eaf10ce6a3e9",
* plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg==",
* algorithm: "RSAES_OAEP_SHA_256",
* });
* const decrypt = pulumi.all([encryptStable.keyId, encryptStable.ciphertextBlob]).apply(([keyId, ciphertextBlob]) => volcengine.kms.getAsymmetricPlaintextsOutput({
* keyId: keyId,
* ciphertextBlob: ciphertextBlob,
* algorithm: "RSAES_OAEP_SHA_256",
* }));
* ```
*/
function getAsymmetricPlaintexts(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:kms/getAsymmetricPlaintexts:getAsymmetricPlaintexts", {
"algorithm": args.algorithm,
"ciphertextBlob": args.ciphertextBlob,
"keyId": args.keyId,
"keyName": args.keyName,
"keyringName": args.keyringName,
"outputFile": args.outputFile,
}, opts);
}
exports.getAsymmetricPlaintexts = getAsymmetricPlaintexts;
/**
* Use this data source to query detailed information of kms asymmetric 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.AsymmetricCiphertext("encryptStable", {
* keyId: "9601e1af-ad69-42df-****-eaf10ce6a3e9",
* plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxLg==",
* algorithm: "RSAES_OAEP_SHA_256",
* });
* const decrypt = pulumi.all([encryptStable.keyId, encryptStable.ciphertextBlob]).apply(([keyId, ciphertextBlob]) => volcengine.kms.getAsymmetricPlaintextsOutput({
* keyId: keyId,
* ciphertextBlob: ciphertextBlob,
* algorithm: "RSAES_OAEP_SHA_256",
* }));
* ```
*/
function getAsymmetricPlaintextsOutput(args, opts) {
return pulumi.output(args).apply((a) => getAsymmetricPlaintexts(a, opts));
}
exports.getAsymmetricPlaintextsOutput = getAsymmetricPlaintextsOutput;
//# sourceMappingURL=getAsymmetricPlaintexts.js.map