UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

130 lines (129 loc) 4.77 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage kms asymmetric ciphertext * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const encrypt1 = new volcengine.kms.AsymmetricCiphertext("encrypt1", { * algorithm: "RSAES_OAEP_SHA_256", * keyId: "9601e1af-ad69-42df-****-eaf10ce6a3e9", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * const encrypt2 = new volcengine.kms.AsymmetricCiphertext("encrypt2", { * algorithm: "SM2PKE", * keyName: "ec-sm2", * keyringName: "Tf-test", * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==", * }); * ``` * * ## Import * * The KmsAsymmetricCiphertext is not support import. */ export declare class AsymmetricCiphertext extends pulumi.CustomResource { /** * Get an existing AsymmetricCiphertext resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AsymmetricCiphertextState, opts?: pulumi.CustomResourceOptions): AsymmetricCiphertext; /** * Returns true if the given object is an instance of AsymmetricCiphertext. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AsymmetricCiphertext; /** * The encryption algorithm. valid values: `RSAES_OAEP_SHA_256`, `SM2PKE`. */ readonly algorithm: pulumi.Output<string>; /** * The ciphertext, Base64 encoded. The produced ciphertextBlob stays stable across applies. If the plaintext should be re-encrypted on each apply use the `volcengine.kms.getAsymmetricCiphertexts` data source. */ readonly ciphertextBlob: pulumi.Output<string>; /** * The id of the key. When keyId is not specified, both keyringName and keyName must be specified. */ readonly keyId: pulumi.Output<string | undefined>; /** * The name of the key. */ readonly keyName: pulumi.Output<string | undefined>; /** * The name of the keyring. */ readonly keyringName: pulumi.Output<string | undefined>; /** * The plaintext to be encrypted, Base64 encoded. */ readonly plaintext: pulumi.Output<string>; /** * Create a AsymmetricCiphertext resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AsymmetricCiphertextArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AsymmetricCiphertext resources. */ export interface AsymmetricCiphertextState { /** * The encryption algorithm. valid values: `RSAES_OAEP_SHA_256`, `SM2PKE`. */ algorithm?: pulumi.Input<string>; /** * The ciphertext, Base64 encoded. The produced ciphertextBlob stays stable across applies. If the plaintext should be re-encrypted on each apply use the `volcengine.kms.getAsymmetricCiphertexts` data source. */ 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>; /** * The plaintext to be encrypted, Base64 encoded. */ plaintext?: pulumi.Input<string>; } /** * The set of arguments for constructing a AsymmetricCiphertext resource. */ export interface AsymmetricCiphertextArgs { /** * 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>; /** * The plaintext to be encrypted, Base64 encoded. */ plaintext: pulumi.Input<string>; }