UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

128 lines (127 loc) 3.94 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of kms asymmetric ciphertexts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const encrypt1 = volcengine.kms.getAsymmetricCiphertexts({ * algorithm: "RSAES_OAEP_SHA_256", * keyId: "9601e1af-ad69-42df-****-eaf10ce6a3e9", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * const encrypt2 = volcengine.kms.getAsymmetricCiphertexts({ * algorithm: "SM2PKE", * keyName: "ec-sm2", * keyringName: "Tf-test", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * ``` */ export declare function getAsymmetricCiphertexts(args: GetAsymmetricCiphertextsArgs, opts?: pulumi.InvokeOptions): Promise<GetAsymmetricCiphertextsResult>; /** * A collection of arguments for invoking getAsymmetricCiphertexts. */ export interface GetAsymmetricCiphertextsArgs { /** * The encryption algorithm. valid values: `RSAES_OAEP_SHA_256`, `SM2PKE`. */ algorithm: 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; /** * The plaintext to be encrypted, Base64 encoded. */ plaintext: string; } /** * A collection of values returned by getAsymmetricCiphertexts. */ export interface GetAsymmetricCiphertextsResult { readonly algorithm: string; /** * The information about the ciphertext. */ readonly ciphertextInfos: outputs.kms.GetAsymmetricCiphertextsCiphertextInfo[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly keyId?: string; readonly keyName?: string; readonly keyringName?: string; readonly outputFile?: string; readonly plaintext: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of kms asymmetric ciphertexts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const encrypt1 = volcengine.kms.getAsymmetricCiphertexts({ * algorithm: "RSAES_OAEP_SHA_256", * keyId: "9601e1af-ad69-42df-****-eaf10ce6a3e9", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * const encrypt2 = volcengine.kms.getAsymmetricCiphertexts({ * algorithm: "SM2PKE", * keyName: "ec-sm2", * keyringName: "Tf-test", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * ``` */ export declare function getAsymmetricCiphertextsOutput(args: GetAsymmetricCiphertextsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAsymmetricCiphertextsResult>; /** * A collection of arguments for invoking getAsymmetricCiphertexts. */ export interface GetAsymmetricCiphertextsOutputArgs { /** * The encryption algorithm. valid values: `RSAES_OAEP_SHA_256`, `SM2PKE`. */ algorithm: 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>; /** * The plaintext to be encrypted, Base64 encoded. */ plaintext: pulumi.Input<string>; }