import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a log subscription for a cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const subscription = ovh.CloudProjectDatabase.getDatabaseLogSubscription({ * serviceName: "VVV", * engine: "XXX", * clusterId: "YYY", * id: "ZZZ", * }); * export const subscriptionLdpName = subscription.then(subscription => subscription.ldpServiceName); * ``` */ export declare function getDatabaseLogSubscription(args: GetDatabaseLogSubscriptionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabaseLogSubscription. */ export interface GetDatabaseLogSubscriptionArgs { /** * Cluster ID. */ clusterId: string; /** * The database engine for which you want to retrieve a subscription. To get a full list of available engine visit. [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine: string; /** * Id of the log subscription. */ id: 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 getDatabaseLogSubscription. */ export interface GetDatabaseLogSubscriptionResult { /** * See Argument Reference above. */ readonly clusterId: string; /** * Creation date of the subscription. */ readonly createdAt: string; /** * See Argument Reference above. */ readonly engine: string; /** * ID of the log subscription. */ readonly id: string; /** * Log kind name of this subscription. */ readonly kind: string; /** * Name of the destination log service. */ readonly ldpServiceName: string; /** * Name of subscribed resource, where the logs come from. */ readonly resourceName: string; /** * Type of subscribed resource, where the logs come from. */ readonly resourceType: string; /** * See Argument Reference above. */ readonly serviceName: string; /** * See Argument Reference above. */ readonly streamId: string; /** * Last update date of the subscription. */ readonly updatedAt: string; } /** * Use this data source to get information about a log subscription for a cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const subscription = ovh.CloudProjectDatabase.getDatabaseLogSubscription({ * serviceName: "VVV", * engine: "XXX", * clusterId: "YYY", * id: "ZZZ", * }); * export const subscriptionLdpName = subscription.then(subscription => subscription.ldpServiceName); * ``` */ export declare function getDatabaseLogSubscriptionOutput(args: GetDatabaseLogSubscriptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabaseLogSubscription. */ export interface GetDatabaseLogSubscriptionOutputArgs { /** * Cluster ID. */ clusterId: pulumi.Input; /** * The database engine for which you want to retrieve a subscription. To get a full list of available engine visit. [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine: pulumi.Input; /** * Id of the log subscription. */ id: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }