import * as pulumi from "@pulumi/pulumi"; /** * Rule file. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@pulumi/volcenginecc"; * * const vMPRuleFileDemo = new volcenginecc.index.VmpRulefile("VMPRuleFileDemo", { * description: "这是一个测试规则文件", * targetWorkspaceId: "3ba7844b-e7fc-4688-a869-****", * content: `groups: * - name: example * rules: * - record: example_metric * expr: sum(up)`, * workspaceId: "3ba7844b-e7fc-4688-a869-****", * name: "test-rule-file", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:vmp/ruleFile:RuleFile example "workspace_id|rule_file_id" * ``` */ export declare class RuleFile extends pulumi.CustomResource { /** * Get an existing RuleFile 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?: RuleFileState, opts?: pulumi.CustomResourceOptions): RuleFile; /** * Returns true if the given object is an instance of RuleFile. 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 RuleFile; /** * Rule file content in YAML format. Content length limits: - Each `expr` must not exceed 16 KB. - Each `record` must not * exceed 2,048 bytes. - Each `labelname` must not exceed 256 bytes. - Each `labelvalue` must not exceed 2,048 bytes. */ readonly content: pulumi.Output; /** * Rule file creation time in RFC3339 format. */ readonly createTime: pulumi.Output; /** * Rule file description, limited to 0–200 characters. **Note:** Note Each English letter, Chinese character, or symbol * counts as one character. */ readonly description: pulumi.Output; /** * Last updated time of the rule file in RFC3339 format. */ readonly lastUpdateTime: pulumi.Output; /** * Rule file name: - Must be a valid Linux file name and less than 255 characters. - Must be unique within the workspace. */ readonly name: pulumi.Output; /** * Number of rules in the rule file. */ readonly ruleCount: pulumi.Output; /** * Rule file ID. */ readonly ruleFileId: pulumi.Output; /** * Rule file status: - **Creating**: Creating - **Running**: Running - **Updating**: Updating - **OverdueSuspended**: * Suspended due to overdue payment - **Resuming**: Resuming */ readonly status: pulumi.Output; /** * Target workspace ID to write to. If empty, writes to the source workspace. */ readonly targetWorkspaceId: pulumi.Output; /** * Workspace ID. */ readonly workspaceId: pulumi.Output; /** * Create a RuleFile 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: RuleFileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RuleFile resources. */ export interface RuleFileState { /** * Rule file content in YAML format. Content length limits: - Each `expr` must not exceed 16 KB. - Each `record` must not * exceed 2,048 bytes. - Each `labelname` must not exceed 256 bytes. - Each `labelvalue` must not exceed 2,048 bytes. */ content?: pulumi.Input; /** * Rule file creation time in RFC3339 format. */ createTime?: pulumi.Input; /** * Rule file description, limited to 0–200 characters. **Note:** Note Each English letter, Chinese character, or symbol * counts as one character. */ description?: pulumi.Input; /** * Last updated time of the rule file in RFC3339 format. */ lastUpdateTime?: pulumi.Input; /** * Rule file name: - Must be a valid Linux file name and less than 255 characters. - Must be unique within the workspace. */ name?: pulumi.Input; /** * Number of rules in the rule file. */ ruleCount?: pulumi.Input; /** * Rule file ID. */ ruleFileId?: pulumi.Input; /** * Rule file status: - **Creating**: Creating - **Running**: Running - **Updating**: Updating - **OverdueSuspended**: * Suspended due to overdue payment - **Resuming**: Resuming */ status?: pulumi.Input; /** * Target workspace ID to write to. If empty, writes to the source workspace. */ targetWorkspaceId?: pulumi.Input; /** * Workspace ID. */ workspaceId?: pulumi.Input; } /** * The set of arguments for constructing a RuleFile resource. */ export interface RuleFileArgs { /** * Rule file content in YAML format. Content length limits: - Each `expr` must not exceed 16 KB. - Each `record` must not * exceed 2,048 bytes. - Each `labelname` must not exceed 256 bytes. - Each `labelvalue` must not exceed 2,048 bytes. */ content: pulumi.Input; /** * Rule file description, limited to 0–200 characters. **Note:** Note Each English letter, Chinese character, or symbol * counts as one character. */ description?: pulumi.Input; /** * Rule file name: - Must be a valid Linux file name and less than 255 characters. - Must be unique within the workspace. */ name: pulumi.Input; /** * Target workspace ID to write to. If empty, writes to the source workspace. */ targetWorkspaceId?: pulumi.Input; /** * Workspace ID. */ workspaceId: pulumi.Input; }