import * as pulumi from "@pulumi/pulumi"; /** * Creates a DBaaS Logs Graylog output stream. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const stream = new ovh.dbaas.LogsOutputGraylogStream("stream", { * serviceName: "....", * title: "my stream", * description: "my graylog stream", * }); * ``` * * To define the retention of the stream, you can use the following configuration: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const retention = ovh.Dbaas.getLogsClustersRetention({ * serviceName: "ldp-xx-xxxxx", * clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * duration: "P14D", * }); * const stream = new ovh.dbaas.LogsOutputGraylogStream("stream", { * serviceName: "....", * title: "my stream", * description: "my graylog stream", * retentionId: retention.then(retention => retention.retentionId), * }); * ``` * * ## Import * * DBaas logs output Graylog stream can be imported using the `service_name` of the cluster and `stream_id` of the graylog output stream, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:Dbaas/logsOutputGraylogStream:LogsOutputGraylogStream ldp ldp-az-12345/9d2f9cf8-9f92-1337-c0f3-48a0213d2c6f * ``` */ export declare class LogsOutputGraylogStream extends pulumi.CustomResource { /** * Get an existing LogsOutputGraylogStream 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?: LogsOutputGraylogStreamState, opts?: pulumi.CustomResourceOptions): LogsOutputGraylogStream; /** * Returns true if the given object is an instance of LogsOutputGraylogStream. 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 LogsOutputGraylogStream; /** * Indicates if the current user can create alert on the stream */ readonly canAlert: pulumi.Output; /** * Cold storage compression method. One of "LZMA", "GZIP", "DEFLATED", "ZSTD" */ readonly coldStorageCompression: pulumi.Output; /** * ColdStorage content. One of "ALL", "GLEF", "PLAIN" */ readonly coldStorageContent: pulumi.Output; /** * Is Cold storage enabled? */ readonly coldStorageEnabled: pulumi.Output; /** * Notify on new Cold storage archive */ readonly coldStorageNotifyEnabled: pulumi.Output; /** * Cold storage retention in year */ readonly coldStorageRetention: pulumi.Output; /** * ColdStorage destination. One of "PCA", "PCS" */ readonly coldStorageTarget: pulumi.Output; /** * Stream creation */ readonly createdAt: pulumi.Output; /** * Stream description */ readonly description: pulumi.Output; /** * Enable ES indexing */ readonly indexingEnabled: pulumi.Output; /** * Maximum indexing size (in GB) */ readonly indexingMaxSize: pulumi.Output; /** * If set, notify when size is near 80, 90 or 100 % of the maximum configured setting */ readonly indexingNotifyEnabled: pulumi.Output; /** * Indicates if you are allowed to edit entry */ readonly isEditable: pulumi.Output; /** * Indicates if you are allowed to share entry */ readonly isShareable: pulumi.Output; /** * Number of alert condition */ readonly nbAlertCondition: pulumi.Output; /** * Number of coldstored archivesr */ readonly nbArchive: pulumi.Output; /** * Parent stream ID */ readonly parentStreamId: pulumi.Output; /** * If set, pause indexing when maximum size is reached */ readonly pauseIndexingOnMaxSize: pulumi.Output; /** * Retention ID */ readonly retentionId: pulumi.Output; /** * The service name */ readonly serviceName: pulumi.Output; /** * Stream ID */ readonly streamId: pulumi.Output; /** * Stream name */ readonly title: pulumi.Output; /** * Stream last updater */ readonly updatedAt: pulumi.Output; /** * Enable Websocket */ readonly webSocketEnabled: pulumi.Output; /** * Write token of the stream (empty if the caller is not the owner of the stream) */ readonly writeToken: pulumi.Output; /** * Create a LogsOutputGraylogStream 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: LogsOutputGraylogStreamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogsOutputGraylogStream resources. */ export interface LogsOutputGraylogStreamState { /** * Indicates if the current user can create alert on the stream */ canAlert?: pulumi.Input; /** * Cold storage compression method. One of "LZMA", "GZIP", "DEFLATED", "ZSTD" */ coldStorageCompression?: pulumi.Input; /** * ColdStorage content. One of "ALL", "GLEF", "PLAIN" */ coldStorageContent?: pulumi.Input; /** * Is Cold storage enabled? */ coldStorageEnabled?: pulumi.Input; /** * Notify on new Cold storage archive */ coldStorageNotifyEnabled?: pulumi.Input; /** * Cold storage retention in year */ coldStorageRetention?: pulumi.Input; /** * ColdStorage destination. One of "PCA", "PCS" */ coldStorageTarget?: pulumi.Input; /** * Stream creation */ createdAt?: pulumi.Input; /** * Stream description */ description?: pulumi.Input; /** * Enable ES indexing */ indexingEnabled?: pulumi.Input; /** * Maximum indexing size (in GB) */ indexingMaxSize?: pulumi.Input; /** * If set, notify when size is near 80, 90 or 100 % of the maximum configured setting */ indexingNotifyEnabled?: pulumi.Input; /** * Indicates if you are allowed to edit entry */ isEditable?: pulumi.Input; /** * Indicates if you are allowed to share entry */ isShareable?: pulumi.Input; /** * Number of alert condition */ nbAlertCondition?: pulumi.Input; /** * Number of coldstored archivesr */ nbArchive?: pulumi.Input; /** * Parent stream ID */ parentStreamId?: pulumi.Input; /** * If set, pause indexing when maximum size is reached */ pauseIndexingOnMaxSize?: pulumi.Input; /** * Retention ID */ retentionId?: pulumi.Input; /** * The service name */ serviceName?: pulumi.Input; /** * Stream ID */ streamId?: pulumi.Input; /** * Stream name */ title?: pulumi.Input; /** * Stream last updater */ updatedAt?: pulumi.Input; /** * Enable Websocket */ webSocketEnabled?: pulumi.Input; /** * Write token of the stream (empty if the caller is not the owner of the stream) */ writeToken?: pulumi.Input; } /** * The set of arguments for constructing a LogsOutputGraylogStream resource. */ export interface LogsOutputGraylogStreamArgs { /** * Cold storage compression method. One of "LZMA", "GZIP", "DEFLATED", "ZSTD" */ coldStorageCompression?: pulumi.Input; /** * ColdStorage content. One of "ALL", "GLEF", "PLAIN" */ coldStorageContent?: pulumi.Input; /** * Is Cold storage enabled? */ coldStorageEnabled?: pulumi.Input; /** * Notify on new Cold storage archive */ coldStorageNotifyEnabled?: pulumi.Input; /** * Cold storage retention in year */ coldStorageRetention?: pulumi.Input; /** * ColdStorage destination. One of "PCA", "PCS" */ coldStorageTarget?: pulumi.Input; /** * Stream description */ description: pulumi.Input; /** * Enable ES indexing */ indexingEnabled?: pulumi.Input; /** * Maximum indexing size (in GB) */ indexingMaxSize?: pulumi.Input; /** * If set, notify when size is near 80, 90 or 100 % of the maximum configured setting */ indexingNotifyEnabled?: pulumi.Input; /** * Parent stream ID */ parentStreamId?: pulumi.Input; /** * If set, pause indexing when maximum size is reached */ pauseIndexingOnMaxSize?: pulumi.Input; /** * Retention ID */ retentionId?: pulumi.Input; /** * The service name */ serviceName: pulumi.Input; /** * Stream name */ title: pulumi.Input; /** * Enable Websocket */ webSocketEnabled?: pulumi.Input; }