import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a log subscription for a Managed Kubernetes cluster associated with a public cloud project. * * ## Example Usage * * Create a log subscription for a Managed Kubernetes cluster. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const stream = ovh.Dbaas.getLogsOutputGraylogStream({ * serviceName: "ldp-xx-xxxxx", * title: "my stream", * }); * const cluster = ovh.CloudProject.getKube({ * serviceName: "XXXXXX", * kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * }); * const sub = new ovh.CloudProjectKubeLogSubscription("sub", { * serviceName: cluster.then(cluster => cluster.serviceName), * kubeId: cluster.then(cluster => cluster.id), * streamId: stream.then(stream => stream.streamId), * kind: "audit", * }); * ``` * * > **Note:** The OVHcloud APIv6 token used by the provider must have `GET` access on the following URI in its token ACL: `/dbaas/logs/*/operation/*` * * ## Import * * OVHcloud Managed Kubernetes Service cluster log subscription can be imported using the `service_name`, `kube_id` and `subscription_id` separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:index/cloudProjectKubeLogSubscription:CloudProjectKubeLogSubscription sub service_name/kube_id/subscription_id * ``` */ export declare class CloudProjectKubeLogSubscription extends pulumi.CustomResource { /** * Get an existing CloudProjectKubeLogSubscription resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CloudProjectKubeLogSubscriptionState, opts?: pulumi.CustomResourceOptions): CloudProjectKubeLogSubscription; /** * Returns true if the given object is an instance of CloudProjectKubeLogSubscription. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CloudProjectKubeLogSubscription; /** * Creation date of the subscription. */ readonly createdAt: pulumi.Output; /** * Log kind name of this subscription. Only `audit` is currently supported. */ readonly kind: pulumi.Output; /** * The id of the managed kubernetes cluster. */ readonly kubeId: pulumi.Output; /** * Information about the subscribed resource. */ readonly resources: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Id of the target Log data platform stream. */ readonly streamId: pulumi.Output; /** * ID of the log subscription. */ readonly subscriptionId: pulumi.Output; /** * Last update date of the subscription. */ readonly updatedAt: pulumi.Output; /** * Create a CloudProjectKubeLogSubscription resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CloudProjectKubeLogSubscriptionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudProjectKubeLogSubscription resources. */ export interface CloudProjectKubeLogSubscriptionState { /** * Creation date of the subscription. */ createdAt?: pulumi.Input; /** * Log kind name of this subscription. Only `audit` is currently supported. */ kind?: pulumi.Input; /** * The id of the managed kubernetes cluster. */ kubeId?: pulumi.Input; /** * Information about the subscribed resource. */ resources?: pulumi.Input[]>; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Id of the target Log data platform stream. */ streamId?: pulumi.Input; /** * ID of the log subscription. */ subscriptionId?: pulumi.Input; /** * Last update date of the subscription. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CloudProjectKubeLogSubscription resource. */ export interface CloudProjectKubeLogSubscriptionArgs { /** * Log kind name of this subscription. Only `audit` is currently supported. */ kind: pulumi.Input; /** * 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; /** * Id of the target Log data platform stream. */ streamId: pulumi.Input; }