import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to get a log subscription for a Managed Kubernetes cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * export = async () => { * const sub = await ovh.getCloudProjectKubeLogSubscription({ * serviceName: "XXXXXX", * kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * subscriptionId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", * }); * return { * "resource-name": sub.resources?.[0]?.name, * }; * } * ``` */ export declare function getCloudProjectKubeLogSubscription(args: GetCloudProjectKubeLogSubscriptionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCloudProjectKubeLogSubscription. */ export interface GetCloudProjectKubeLogSubscriptionArgs { /** * The id of the managed kubernetes cluster. */ kubeId: string; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: string; /** * The id of the log subscription. */ subscriptionId: string; } /** * A collection of values returned by getCloudProjectKubeLogSubscription. */ export interface GetCloudProjectKubeLogSubscriptionResult { /** * Creation date of the subscription. */ readonly createdAt: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Log kind name of this subscription. Only `audit` is currently supported. */ readonly kind: string; /** * See Argument Reference above. */ readonly kubeId: string; /** * Information about the subscribed resource. */ readonly resources: outputs.GetCloudProjectKubeLogSubscriptionResource[]; /** * See Argument Reference above. */ readonly serviceName: string; /** * Id of the target Log data platform stream. */ readonly streamId: string; /** * See Argument Reference above. */ readonly subscriptionId: string; /** * Last update date of the subscription. */ readonly updatedAt: string; } /** * Use this data source to get a log subscription for a Managed Kubernetes cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * export = async () => { * const sub = await ovh.getCloudProjectKubeLogSubscription({ * serviceName: "XXXXXX", * kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * subscriptionId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", * }); * return { * "resource-name": sub.resources?.[0]?.name, * }; * } * ``` */ export declare function getCloudProjectKubeLogSubscriptionOutput(args: GetCloudProjectKubeLogSubscriptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getCloudProjectKubeLogSubscription. */ export interface GetCloudProjectKubeLogSubscriptionOutputArgs { /** * The id of the managed kubernetes cluster. */ kubeId: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; /** * The id of the log subscription. */ subscriptionId: pulumi.Input; }