import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The log service provides log collection tools such as LogCollector and multi-language SDKs, supports various log collection methods, is compatible with open-source protocol frameworks like Kafka and OpenTelemetry, and supports log data collection from host applications, K8s clusters, mobile clients, Volcano Engine cloud products, and other cloud vendors. * * ## Import * * ```sh * $ pulumi import volcenginecc:tls/rule:Rule example "rule_id" * ``` */ export declare class Rule extends pulumi.CustomResource { /** * Get an existing Rule 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?: RuleState, opts?: pulumi.CustomResourceOptions): Rule; /** * Returns true if the given object is an instance of Rule. 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 Rule; /** * Container log collection rules. */ readonly containerRule: pulumi.Output; /** * Time when the collection configuration was created. */ readonly createTime: pulumi.Output; readonly excludePaths: pulumi.Output; /** * Log extraction rules. Note: This parameter is required if LogType is set to any type other than minimalist*log or json*log. */ readonly extractRule: pulumi.Output; readonly hostGroupInfos: pulumi.Output; /** * Collection type. 0: (Default) Host log file. 1: K8s container stdout. 2: K8s container internal log file. */ readonly inputType: pulumi.Output; /** * Log sample. Maximum length is 3000 characters. Log sample content must match the collection mode. Single-line full-text mode and JSON mode do not require a log sample. Other modes require a log sample, and the content must match the collection mode. */ readonly logSample: pulumi.Output; /** * Collection mode. minimalist*log: (Default) Single-line full-text mode. json*log: JSON mode. delimiter*log: Delimiter mode. multiline*log: Multi-line full-text mode. fullregex_log: Full regex mode. */ readonly logType: pulumi.Output; /** * Collection configuration modification time. */ readonly modifyTime: pulumi.Output; /** * Collection path list. You can create up to 10 collection paths. Collection paths must be specified as absolute paths; relative paths are not supported. When InputType=0 or InputType=2, collection paths support exact match and wildcard mode. Wildcards only support **, *, and ?, but you can configure at most one ** wildcard. When InputType=1, you do not need to configure the collection path list. */ readonly paths: pulumi.Output; /** * Collection configuration status. 0: Running. 1: Paused. */ readonly pause: pulumi.Output; /** * ID of the project to which the collection configuration belongs. */ readonly projectId: pulumi.Output; /** * Name of the project to which the collection configuration belongs */ readonly projectName: pulumi.Output; /** * Collection configuration ID. */ readonly ruleId: pulumi.Output; /** * Collection configuration name. Please refer to the resource naming rules. Must be unique within a log topic. */ readonly ruleName: pulumi.Output; /** * Log topic ID to which the collection configuration belongs. */ readonly topicId: pulumi.Output; /** * Name of the log topic to which the collection configuration belongs. */ readonly topicName: pulumi.Output; /** * User-defined collection rules. */ readonly userDefineRule: pulumi.Output; /** * Create a Rule 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: RuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Rule resources. */ export interface RuleState { /** * Container log collection rules. */ containerRule?: pulumi.Input; /** * Time when the collection configuration was created. */ createTime?: pulumi.Input; excludePaths?: pulumi.Input[]>; /** * Log extraction rules. Note: This parameter is required if LogType is set to any type other than minimalist*log or json*log. */ extractRule?: pulumi.Input; hostGroupInfos?: pulumi.Input[]>; /** * Collection type. 0: (Default) Host log file. 1: K8s container stdout. 2: K8s container internal log file. */ inputType?: pulumi.Input; /** * Log sample. Maximum length is 3000 characters. Log sample content must match the collection mode. Single-line full-text mode and JSON mode do not require a log sample. Other modes require a log sample, and the content must match the collection mode. */ logSample?: pulumi.Input; /** * Collection mode. minimalist*log: (Default) Single-line full-text mode. json*log: JSON mode. delimiter*log: Delimiter mode. multiline*log: Multi-line full-text mode. fullregex_log: Full regex mode. */ logType?: pulumi.Input; /** * Collection configuration modification time. */ modifyTime?: pulumi.Input; /** * Collection path list. You can create up to 10 collection paths. Collection paths must be specified as absolute paths; relative paths are not supported. When InputType=0 or InputType=2, collection paths support exact match and wildcard mode. Wildcards only support **, *, and ?, but you can configure at most one ** wildcard. When InputType=1, you do not need to configure the collection path list. */ paths?: pulumi.Input[]>; /** * Collection configuration status. 0: Running. 1: Paused. */ pause?: pulumi.Input; /** * ID of the project to which the collection configuration belongs. */ projectId?: pulumi.Input; /** * Name of the project to which the collection configuration belongs */ projectName?: pulumi.Input; /** * Collection configuration ID. */ ruleId?: pulumi.Input; /** * Collection configuration name. Please refer to the resource naming rules. Must be unique within a log topic. */ ruleName?: pulumi.Input; /** * Log topic ID to which the collection configuration belongs. */ topicId?: pulumi.Input; /** * Name of the log topic to which the collection configuration belongs. */ topicName?: pulumi.Input; /** * User-defined collection rules. */ userDefineRule?: pulumi.Input; } /** * The set of arguments for constructing a Rule resource. */ export interface RuleArgs { /** * Container log collection rules. */ containerRule?: pulumi.Input; excludePaths?: pulumi.Input[]>; /** * Log extraction rules. Note: This parameter is required if LogType is set to any type other than minimalist*log or json*log. */ extractRule?: pulumi.Input; hostGroupInfos?: pulumi.Input[]>; /** * Collection type. 0: (Default) Host log file. 1: K8s container stdout. 2: K8s container internal log file. */ inputType?: pulumi.Input; /** * Log sample. Maximum length is 3000 characters. Log sample content must match the collection mode. Single-line full-text mode and JSON mode do not require a log sample. Other modes require a log sample, and the content must match the collection mode. */ logSample?: pulumi.Input; /** * Collection mode. minimalist*log: (Default) Single-line full-text mode. json*log: JSON mode. delimiter*log: Delimiter mode. multiline*log: Multi-line full-text mode. fullregex_log: Full regex mode. */ logType?: pulumi.Input; /** * Collection path list. You can create up to 10 collection paths. Collection paths must be specified as absolute paths; relative paths are not supported. When InputType=0 or InputType=2, collection paths support exact match and wildcard mode. Wildcards only support **, *, and ?, but you can configure at most one ** wildcard. When InputType=1, you do not need to configure the collection path list. */ paths?: pulumi.Input[]>; /** * Collection configuration status. 0: Running. 1: Paused. */ pause?: pulumi.Input; /** * Collection configuration name. Please refer to the resource naming rules. Must be unique within a log topic. */ ruleName: pulumi.Input; /** * Log topic ID to which the collection configuration belongs. */ topicId: pulumi.Input; /** * User-defined collection rules. */ userDefineRule?: pulumi.Input; }