@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
130 lines (129 loc) • 4.4 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* 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",
* }));
* ```
*/
/** @deprecated volcengine.kms.AsymmetricPlaintexts has been deprecated in favor of volcengine.kms.getAsymmetricPlaintexts */
export declare function asymmetricPlaintexts(args: AsymmetricPlaintextsArgs, opts?: pulumi.InvokeOptions): Promise<AsymmetricPlaintextsResult>;
/**
* A collection of arguments for invoking AsymmetricPlaintexts.
*/
export interface AsymmetricPlaintextsArgs {
/**
* The encryption algorithm. valid values: `RSAES_OAEP_SHA_256`, `SM2PKE`.
*/
algorithm: string;
/**
* The ciphertext to be decrypted, Base64 encoded.
*/
ciphertextBlob: string;
/**
* The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
*/
keyId?: string;
/**
* The name of the key.
*/
keyName?: string;
/**
* The name of the keyring.
*/
keyringName?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
}
/**
* A collection of values returned by AsymmetricPlaintexts.
*/
export interface AsymmetricPlaintextsResult {
readonly algorithm: string;
readonly ciphertextBlob: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly keyId?: string;
readonly keyName?: string;
readonly keyringName?: string;
readonly outputFile?: string;
/**
* The decrypted plaintext.
*/
readonly plaintextInfos: outputs.kms.AsymmetricPlaintextsPlaintextInfo[];
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* 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",
* }));
* ```
*/
/** @deprecated volcengine.kms.AsymmetricPlaintexts has been deprecated in favor of volcengine.kms.getAsymmetricPlaintexts */
export declare function asymmetricPlaintextsOutput(args: AsymmetricPlaintextsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AsymmetricPlaintextsResult>;
/**
* A collection of arguments for invoking AsymmetricPlaintexts.
*/
export interface AsymmetricPlaintextsOutputArgs {
/**
* The encryption algorithm. valid values: `RSAES_OAEP_SHA_256`, `SM2PKE`.
*/
algorithm: pulumi.Input<string>;
/**
* The ciphertext to be decrypted, Base64 encoded.
*/
ciphertextBlob: pulumi.Input<string>;
/**
* The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
*/
keyId?: pulumi.Input<string>;
/**
* The name of the key.
*/
keyName?: pulumi.Input<string>;
/**
* The name of the keyring.
*/
keyringName?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
}