import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to get information about a single secret in the Barbican Key Manager service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const secret = ovh.getCloudKeyManagerSecret({ * serviceName: "Public cloud project ID", * secretId: "00000000-0000-0000-0000-000000000000", * }); * export const secretName = secret.then(secret => secret.name); * ``` */ export declare function getCloudKeyManagerSecret(args: GetCloudKeyManagerSecretArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCloudKeyManagerSecret. */ export interface GetCloudKeyManagerSecretArgs { /** * ID of the secret. */ secretId: string; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: string; } /** * A collection of values returned by getCloudKeyManagerSecret. */ export interface GetCloudKeyManagerSecretResult { /** * Computed hash representing the current resource state. */ readonly checksum: string; /** * Creation date of the secret. */ readonly createdAt: string; /** * Current state of the secret as reported by OpenStack Barbican: */ readonly currentState: outputs.GetCloudKeyManagerSecretCurrentState; /** * ID of the secret. */ readonly id: string; /** * Location of the secret: */ readonly location: outputs.GetCloudKeyManagerSecretLocation; /** * Key-value metadata. */ readonly metadata: { [key: string]: string; }; /** * Name of the secret. */ readonly name: string; /** * Secret readiness status. */ readonly resourceStatus: string; readonly secretId: string; /** * Type of the secret. */ readonly secretType: string; readonly serviceName: string; /** * Last update date of the secret. */ readonly updatedAt: string; } /** * Use this data source to get information about a single secret in the Barbican Key Manager service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const secret = ovh.getCloudKeyManagerSecret({ * serviceName: "Public cloud project ID", * secretId: "00000000-0000-0000-0000-000000000000", * }); * export const secretName = secret.then(secret => secret.name); * ``` */ export declare function getCloudKeyManagerSecretOutput(args: GetCloudKeyManagerSecretOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getCloudKeyManagerSecret. */ export interface GetCloudKeyManagerSecretOutputArgs { /** * ID of the secret. */ secretId: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }