import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to list all consumers registered on a Barbican Key Manager secret. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const consumers = ovh.getCloudKeyManagerSecretConsumers({ * serviceName: "Public cloud project ID", * secretId: "00000000-0000-0000-0000-000000000000", * }); * export const consumerServices = consumers.then(consumers => .map(c => (c.service))); * ``` */ export declare function getCloudKeyManagerSecretConsumers(args: GetCloudKeyManagerSecretConsumersArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCloudKeyManagerSecretConsumers. */ export interface GetCloudKeyManagerSecretConsumersArgs { /** * UUID 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 getCloudKeyManagerSecretConsumers. */ export interface GetCloudKeyManagerSecretConsumersResult { /** * List of consumers registered on the secret. Each consumer has the following attributes: */ readonly consumers: outputs.GetCloudKeyManagerSecretConsumersConsumer[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly secretId: string; readonly serviceName: string; } /** * Use this data source to list all consumers registered on a Barbican Key Manager secret. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const consumers = ovh.getCloudKeyManagerSecretConsumers({ * serviceName: "Public cloud project ID", * secretId: "00000000-0000-0000-0000-000000000000", * }); * export const consumerServices = consumers.then(consumers => .map(c => (c.service))); * ``` */ export declare function getCloudKeyManagerSecretConsumersOutput(args: GetCloudKeyManagerSecretConsumersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getCloudKeyManagerSecretConsumers. */ export interface GetCloudKeyManagerSecretConsumersOutputArgs { /** * UUID 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; }