UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

135 lines (134 loc) 4.32 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of kms re encrypts * ## 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 reEncryptChanging = volcengine.kms.getReEncryptsOutput({ * newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc", * sourceCiphertextBlob: encryptStable.ciphertextBlob, * }); * ``` */ /** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */ export declare function reEncrypts(args: ReEncryptsArgs, opts?: pulumi.InvokeOptions): Promise<ReEncryptsResult>; /** * A collection of arguments for invoking ReEncrypts. */ export interface ReEncryptsArgs { /** * The new encryption context JSON string of key/value pairs. */ newEncryptionContext?: string; /** * The new key id. When newKeyId is not specified, both newKeyringName and newKeyName must be specified. */ newKeyId?: string; /** * The new key name. */ newKeyName?: string; /** * The new keyring name. */ newKeyringName?: string; /** * The old encryption context JSON string of key/value pairs. */ oldEncryptionContext?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The ciphertext data to be re-encrypted, Base64 encoded. */ sourceCiphertextBlob: string; } /** * A collection of values returned by ReEncrypts. */ export interface ReEncryptsResult { /** * The information about the ciphertext. */ readonly ciphertextInfos: outputs.kms.ReEncryptsCiphertextInfo[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly newEncryptionContext?: string; readonly newKeyId?: string; readonly newKeyName?: string; readonly newKeyringName?: string; readonly oldEncryptionContext?: string; readonly outputFile?: string; readonly sourceCiphertextBlob: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of kms re encrypts * ## 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 reEncryptChanging = volcengine.kms.getReEncryptsOutput({ * newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc", * sourceCiphertextBlob: encryptStable.ciphertextBlob, * }); * ``` */ /** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */ export declare function reEncryptsOutput(args: ReEncryptsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ReEncryptsResult>; /** * A collection of arguments for invoking ReEncrypts. */ export interface ReEncryptsOutputArgs { /** * The new encryption context JSON string of key/value pairs. */ newEncryptionContext?: pulumi.Input<string>; /** * The new key id. When newKeyId is not specified, both newKeyringName and newKeyName must be specified. */ newKeyId?: pulumi.Input<string>; /** * The new key name. */ newKeyName?: pulumi.Input<string>; /** * The new keyring name. */ newKeyringName?: pulumi.Input<string>; /** * The old encryption context JSON string of key/value pairs. */ oldEncryptionContext?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The ciphertext data to be re-encrypted, Base64 encoded. */ sourceCiphertextBlob: pulumi.Input<string>; }