import * as pulumi from "@pulumi/pulumi"; /** * Creates a log subscription for a cluster associated with a public cloud project. * * ## Example Usage * * Create a log subscription for a database. * * ```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 db = ovh.CloudProjectDatabase.getDatabase({ * serviceName: "XXX", * engine: "YYY", * id: "ZZZ", * }); * const subscription = new ovh.cloudprojectdatabase.LogSubscription("subscription", { * serviceName: db.then(db => db.serviceName), * engine: db.then(db => db.engine), * clusterId: db.then(db => db.id), * streamId: stream.then(stream => stream.id), * kind: "customer_logs", * }); * ``` * * ## Import * * OVHcloud Managed clusters logs subscription can be imported using the `service_name`, `engine`, `cluster_id` and `id` of the subscription, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProjectDatabase/logSubscription:LogSubscription sub service_name/engine/cluster_id/id * ``` */ export declare class LogSubscription extends pulumi.CustomResource { /** * Get an existing LogSubscription 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?: LogSubscriptionState, opts?: pulumi.CustomResourceOptions): LogSubscription; /** * Returns true if the given object is an instance of LogSubscription. 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 LogSubscription; /** * Cluster ID. */ readonly clusterId: pulumi.Output; /** * Creation date of the subscription. */ readonly createdAt: pulumi.Output; /** * The database engine for which you want to manage a subscription. To get a full list of available engine visit. [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ readonly engine: pulumi.Output; /** * Log kind name of this subscription. */ readonly kind: pulumi.Output; /** * Name of the destination log service. */ readonly ldpServiceName: pulumi.Output; /** * Identifier of the operation. */ readonly operationId: pulumi.Output; /** * Name of subscribed resource, where the logs come from. */ readonly resourceName: pulumi.Output; /** * Type of subscribed resource, where the logs come from. */ readonly resourceType: 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; /** * Last update date of the subscription. */ readonly updatedAt: pulumi.Output; /** * Create a LogSubscription 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: LogSubscriptionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogSubscription resources. */ export interface LogSubscriptionState { /** * Cluster ID. */ clusterId?: pulumi.Input; /** * Creation date of the subscription. */ createdAt?: pulumi.Input; /** * The database engine for which you want to manage a subscription. To get a full list of available engine visit. [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine?: pulumi.Input; /** * Log kind name of this subscription. */ kind?: pulumi.Input; /** * Name of the destination log service. */ ldpServiceName?: pulumi.Input; /** * Identifier of the operation. */ operationId?: pulumi.Input; /** * Name of subscribed resource, where the logs come from. */ resourceName?: pulumi.Input; /** * Type of subscribed resource, where the logs come from. */ resourceType?: 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; /** * Last update date of the subscription. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a LogSubscription resource. */ export interface LogSubscriptionArgs { /** * Cluster ID. */ clusterId: pulumi.Input; /** * The database engine for which you want to manage a subscription. To get a full list of available engine visit. [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine: pulumi.Input; /** * Log kind name of this subscription. */ kind: 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; }