import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Creates a dbaas logs input. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const logstash = ovh.Dbaas.getLogsInputEngine({ * name: "logstash", * version: "9.x", * }); * const stream = new ovh.dbaas.LogsOutputGraylogStream("stream", { * serviceName: "....", * title: "my stream", * description: "my graylog stream", * }); * const input = new ovh.dbaas.LogsInput("input", { * serviceName: stream.serviceName, * description: stream.description, * title: stream.title, * engineId: logstash.then(logstash => logstash.id), * streamId: stream.id, * allowedNetworks: ["10.0.0.0/16"], * exposedPort: "6154", * nbInstance: 2, * configuration: { * logstash: { * inputSection: ` beats { * port => 6514 * ssl_enabled => true * ssl_certificate => "/etc/ssl/private/server.crt" * ssl_key => "/etc/ssl/private/server.key" * } * `, * }, * }, * }); * ``` * * ## Import * * DBaaS Logs input can be imported using the `service_name` and `id` of the input, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:Dbaas/logsInput:LogsInput my_input service_name/input_id * ``` */ export declare class LogsInput extends pulumi.CustomResource { /** * Get an existing LogsInput 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?: LogsInputState, opts?: pulumi.CustomResourceOptions): LogsInput; /** * Returns true if the given object is an instance of LogsInput. 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 LogsInput; /** * List of IP blocks */ readonly allowedNetworks: pulumi.Output; /** * Whether the workload is auto-scaled (mutually exclusive with parameter `nbInstance`) */ readonly autoscale: pulumi.Output; /** * Input configuration */ readonly configuration: pulumi.Output; /** * Input creation */ readonly createdAt: pulumi.Output; /** * Number of instance running (returned by the API) */ readonly currentNbInstance: pulumi.Output; /** * Input description */ readonly description: pulumi.Output; /** * Input engine ID */ readonly engineId: pulumi.Output; /** * Port */ readonly exposedPort: pulumi.Output; /** * Hostname */ readonly hostname: pulumi.Output; /** * Input ID */ readonly inputId: pulumi.Output; /** * Indicate if input need to be restarted */ readonly isRestartRequired: pulumi.Output; /** * Maximum number of instances in auto-scaled mode */ readonly maxScaleInstance: pulumi.Output; /** * Minimum number of instances in auto-scaled mode */ readonly minScaleInstance: pulumi.Output; /** * Number of instance running (input, mutually exclusive with parameter `autoscale`) */ readonly nbInstance: pulumi.Output; /** * Input IP address */ readonly publicAddress: pulumi.Output; /** * service name */ readonly serviceName: pulumi.Output; /** * Input SSL certificate */ readonly sslCertificate: pulumi.Output; /** * init: configuration required, pending: ready to start, running: available */ readonly status: pulumi.Output; /** * Associated Graylog stream */ readonly streamId: pulumi.Output; /** * Input title */ readonly title: pulumi.Output; /** * Input last update */ readonly updatedAt: pulumi.Output; /** * Create a LogsInput 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: LogsInputArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogsInput resources. */ export interface LogsInputState { /** * List of IP blocks */ allowedNetworks?: pulumi.Input[]>; /** * Whether the workload is auto-scaled (mutually exclusive with parameter `nbInstance`) */ autoscale?: pulumi.Input; /** * Input configuration */ configuration?: pulumi.Input; /** * Input creation */ createdAt?: pulumi.Input; /** * Number of instance running (returned by the API) */ currentNbInstance?: pulumi.Input; /** * Input description */ description?: pulumi.Input; /** * Input engine ID */ engineId?: pulumi.Input; /** * Port */ exposedPort?: pulumi.Input; /** * Hostname */ hostname?: pulumi.Input; /** * Input ID */ inputId?: pulumi.Input; /** * Indicate if input need to be restarted */ isRestartRequired?: pulumi.Input; /** * Maximum number of instances in auto-scaled mode */ maxScaleInstance?: pulumi.Input; /** * Minimum number of instances in auto-scaled mode */ minScaleInstance?: pulumi.Input; /** * Number of instance running (input, mutually exclusive with parameter `autoscale`) */ nbInstance?: pulumi.Input; /** * Input IP address */ publicAddress?: pulumi.Input; /** * service name */ serviceName?: pulumi.Input; /** * Input SSL certificate */ sslCertificate?: pulumi.Input; /** * init: configuration required, pending: ready to start, running: available */ status?: pulumi.Input; /** * Associated Graylog stream */ streamId?: pulumi.Input; /** * Input title */ title?: pulumi.Input; /** * Input last update */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a LogsInput resource. */ export interface LogsInputArgs { /** * List of IP blocks */ allowedNetworks?: pulumi.Input[]>; /** * Whether the workload is auto-scaled (mutually exclusive with parameter `nbInstance`) */ autoscale?: pulumi.Input; /** * Input configuration */ configuration: pulumi.Input; /** * Input description */ description: pulumi.Input; /** * Input engine ID */ engineId: pulumi.Input; /** * Port */ exposedPort?: pulumi.Input; /** * Maximum number of instances in auto-scaled mode */ maxScaleInstance?: pulumi.Input; /** * Minimum number of instances in auto-scaled mode */ minScaleInstance?: pulumi.Input; /** * Number of instance running (input, mutually exclusive with parameter `autoscale`) */ nbInstance?: pulumi.Input; /** * service name */ serviceName: pulumi.Input; /** * Associated Graylog stream */ streamId: pulumi.Input; /** * Input title */ title: pulumi.Input; }