UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

130 lines (129 loc) 4.15 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==", * }); * ``` */ /** @deprecated volcengine.kms.AsymmetricCiphertexts has been deprecated in favor of volcengine.kms.getAsymmetricCiphertexts */ export declare function asymmetricCiphertexts(args: AsymmetricCiphertextsArgs, opts?: pulumi.InvokeOptions): Promise<AsymmetricCiphertextsResult>; /** * A collection of arguments for invoking AsymmetricCiphertexts. */ export interface AsymmetricCiphertextsArgs { /** * 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 AsymmetricCiphertexts. */ export interface AsymmetricCiphertextsResult { readonly algorithm: string; /** * The information about the ciphertext. */ readonly ciphertextInfos: outputs.kms.AsymmetricCiphertextsCiphertextInfo[]; /** * 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==", * }); * ``` */ /** @deprecated volcengine.kms.AsymmetricCiphertexts has been deprecated in favor of volcengine.kms.getAsymmetricCiphertexts */ export declare function asymmetricCiphertextsOutput(args: AsymmetricCiphertextsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AsymmetricCiphertextsResult>; /** * A collection of arguments for invoking AsymmetricCiphertexts. */ export interface AsymmetricCiphertextsOutputArgs { /** * 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>; }