import * as pulumi from "@pulumi/pulumi"; /** * The `oci.Kms.getDecryptedData` data source provides details about a specific DecryptedData * * Decrypts data using the given DecryptDataDetails resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDecryptedData = oci.kms.getDecryptedData({ * ciphertext: decryptedDataCiphertext, * cryptoEndpoint: decryptedDataCryptoEndpoint, * keyId: testKey.id, * associatedData: decryptedDataAssociatedData, * }); * ``` */ export declare function getDecryptedData(args: GetDecryptedDataArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDecryptedData. */ export interface GetDecryptedDataArgs { /** * Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters. */ associatedData?: { [key: string]: string; }; /** * The encrypted data to decrypt. */ ciphertext: string; /** * The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint. */ cryptoEndpoint: string; /** * The OCID of the key used to encrypt the ciphertext. */ keyId: string; } /** * A collection of values returned by getDecryptedData. */ export interface GetDecryptedDataResult { readonly associatedData?: { [key: string]: string; }; readonly ciphertext: string; readonly cryptoEndpoint: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly keyId: string; /** * The decrypted data, in the form of a base64-encoded value. */ readonly plaintext: string; /** * Checksum of the decrypted data. */ readonly plaintextChecksum: string; } /** * The `oci.Kms.getDecryptedData` data source provides details about a specific DecryptedData * * Decrypts data using the given DecryptDataDetails resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDecryptedData = oci.kms.getDecryptedData({ * ciphertext: decryptedDataCiphertext, * cryptoEndpoint: decryptedDataCryptoEndpoint, * keyId: testKey.id, * associatedData: decryptedDataAssociatedData, * }); * ``` */ export declare function getDecryptedDataOutput(args: GetDecryptedDataOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDecryptedData. */ export interface GetDecryptedDataOutputArgs { /** * Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associatedData must be fewer than 4096 characters. */ associatedData?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The encrypted data to decrypt. */ ciphertext: pulumi.Input; /** * The service endpoint to perform cryptographic operations against. Cryptographic operations include 'Encrypt,' 'Decrypt,' and 'GenerateDataEncryptionKey' operations. see Vault Crypto endpoint. */ cryptoEndpoint: pulumi.Input; /** * The OCID of the key used to encrypt the ciphertext. */ keyId: pulumi.Input; } //# sourceMappingURL=getDecryptedData.d.ts.map