UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

95 lines (94 loc) 2.85 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * 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, * }); * ``` */ export declare function getPlaintexts(args: GetPlaintextsArgs, opts?: pulumi.InvokeOptions): Promise<GetPlaintextsResult>; /** * A collection of arguments for invoking getPlaintexts. */ export interface GetPlaintextsArgs { /** * The ciphertext to be decrypted. */ ciphertextBlob: string; /** * The JSON string of key/value pairs. */ encryptionContext?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getPlaintexts. */ export interface GetPlaintextsResult { readonly ciphertextBlob: string; readonly encryptionContext?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly outputFile?: string; /** * The decrypted plaintext. */ readonly plaintextInfos: outputs.kms.GetPlaintextsPlaintextInfo[]; /** * The total count of query. */ readonly totalCount: number; } /** * 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, * }); * ``` */ export declare function getPlaintextsOutput(args: GetPlaintextsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPlaintextsResult>; /** * A collection of arguments for invoking getPlaintexts. */ export interface GetPlaintextsOutputArgs { /** * The ciphertext to be decrypted. */ ciphertextBlob: pulumi.Input<string>; /** * The JSON string of key/value pairs. */ encryptionContext?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }