UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

97 lines (96 loc) 3.02 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, * }); * ``` */ /** @deprecated volcengine.kms.Plaintexts has been deprecated in favor of volcengine.kms.getPlaintexts */ export declare function plaintexts(args: PlaintextsArgs, opts?: pulumi.InvokeOptions): Promise<PlaintextsResult>; /** * A collection of arguments for invoking Plaintexts. */ export interface PlaintextsArgs { /** * 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 Plaintexts. */ export interface PlaintextsResult { 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.PlaintextsPlaintextInfo[]; /** * 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, * }); * ``` */ /** @deprecated volcengine.kms.Plaintexts has been deprecated in favor of volcengine.kms.getPlaintexts */ export declare function plaintextsOutput(args: PlaintextsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<PlaintextsResult>; /** * A collection of arguments for invoking Plaintexts. */ export interface PlaintextsOutputArgs { /** * 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>; }