import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * ## Example Usage * * Get the latest secret version (metadata only): * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const latest = ovh.getOkmsSecret({ * okmsId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * path: "app/api_credentials", * }); * ``` * * Get the latest secret version including its data: */ export declare function getOkmsSecret(args: GetOkmsSecretArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getOkmsSecret. */ export interface GetOkmsSecretArgs { includeData?: boolean; okmsId: string; path: string; version?: number; } /** * A collection of values returned by getOkmsSecret. */ export interface GetOkmsSecretResult { readonly data: string; readonly iam: outputs.GetOkmsSecretIam; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly includeData?: boolean; readonly metadata: outputs.GetOkmsSecretMetadata; readonly okmsId: string; readonly path: string; readonly version: number; } /** * ## Example Usage * * Get the latest secret version (metadata only): * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const latest = ovh.getOkmsSecret({ * okmsId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * path: "app/api_credentials", * }); * ``` * * Get the latest secret version including its data: */ export declare function getOkmsSecretOutput(args: GetOkmsSecretOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getOkmsSecret. */ export interface GetOkmsSecretOutputArgs { includeData?: pulumi.Input; okmsId: pulumi.Input; path: pulumi.Input; version?: pulumi.Input; }