import * as pulumi from "@pulumi/pulumi"; /** * Event rule details * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const cloudMonitorEventRuleDemo = new volcenginecc.cloudmonitor.EventRule("CloudMonitorEventRuleDemo", { * ruleName: "ccapi-test-1001", * description: "autoscaling scale in error", * eventBusName: "default", * eventSource: "autoscaling", * eventTypes: ["autoscaling:ScalingGroup:ScaleInError"], * enableState: "enable", * level: "critical", * notificationId: "2049745192xxxxxx", * filterPatternInput: JSON.stringify({ * Data: { * autoscaling: [ * "1", * "3", * ], * ecs: ["2"], * }, * }), * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:cloudmonitor/eventRule:EventRule example "rule_id" * ``` */ export declare class EventRule extends pulumi.CustomResource { /** * Get an existing EventRule 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?: EventRuleState, opts?: pulumi.CustomResourceOptions): EventRule; /** * Returns true if the given object is an instance of EventRule. 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 EventRule; /** * Main account ID */ readonly accountId: pulumi.Output; /** * Event rule creation time */ readonly createdAt: pulumi.Output; /** * Rule description Must not start with a digit, hyphen (-), or Chinese punctuation Can only contain Chinese characters, * letters, digits, underscore (_), hyphen (-), or Chinese punctuation Length limit: 0–255 characters */ readonly description: pulumi.Output; /** * Rule status enable: Rule enabled disable: Rule disabled */ readonly enableState: pulumi.Output; /** * Event bus name. Currently, only 'default' can be entered */ readonly eventBusName: pulumi.Output; /** * Event source */ readonly eventSource: pulumi.Output; /** * Event type */ readonly eventTypes: pulumi.Output; /** * Filter mode, also known as event matching rule. Read-only */ readonly filterPattern: pulumi.Output; /** * Filter mode, also known as event matching rule. Used for creation and modification. Format: * {"Data":{"autoscaling":["1","3"],"ecs":["2"]}} */ readonly filterPatternInput: pulumi.Output; /** * Alert rule severity */ readonly level: pulumi.Output; /** * Policy ID */ readonly notificationId: pulumi.Output; /** * Event rule ID */ readonly ruleId: pulumi.Output; /** * Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-) */ readonly ruleName: pulumi.Output; /** * Event rule update time */ readonly updatedAt: pulumi.Output; /** * Create a EventRule 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: EventRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EventRule resources. */ export interface EventRuleState { /** * Main account ID */ accountId?: pulumi.Input; /** * Event rule creation time */ createdAt?: pulumi.Input; /** * Rule description Must not start with a digit, hyphen (-), or Chinese punctuation Can only contain Chinese characters, * letters, digits, underscore (_), hyphen (-), or Chinese punctuation Length limit: 0–255 characters */ description?: pulumi.Input; /** * Rule status enable: Rule enabled disable: Rule disabled */ enableState?: pulumi.Input; /** * Event bus name. Currently, only 'default' can be entered */ eventBusName?: pulumi.Input; /** * Event source */ eventSource?: pulumi.Input; /** * Event type */ eventTypes?: pulumi.Input[]>; /** * Filter mode, also known as event matching rule. Read-only */ filterPattern?: pulumi.Input; /** * Filter mode, also known as event matching rule. Used for creation and modification. Format: * {"Data":{"autoscaling":["1","3"],"ecs":["2"]}} */ filterPatternInput?: pulumi.Input; /** * Alert rule severity */ level?: pulumi.Input; /** * Policy ID */ notificationId?: pulumi.Input; /** * Event rule ID */ ruleId?: pulumi.Input; /** * Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-) */ ruleName?: pulumi.Input; /** * Event rule update time */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a EventRule resource. */ export interface EventRuleArgs { /** * Rule description Must not start with a digit, hyphen (-), or Chinese punctuation Can only contain Chinese characters, * letters, digits, underscore (_), hyphen (-), or Chinese punctuation Length limit: 0–255 characters */ description?: pulumi.Input; /** * Rule status enable: Rule enabled disable: Rule disabled */ enableState?: pulumi.Input; /** * Event bus name. Currently, only 'default' can be entered */ eventBusName: pulumi.Input; /** * Event source */ eventSource: pulumi.Input; /** * Event type */ eventTypes: pulumi.Input[]>; /** * Filter mode, also known as event matching rule. Used for creation and modification. Format: * {"Data":{"autoscaling":["1","3"],"ecs":["2"]}} */ filterPatternInput?: pulumi.Input; /** * Alert rule severity */ level: pulumi.Input; /** * Policy ID */ notificationId?: pulumi.Input; /** * Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-) */ ruleName: pulumi.Input; }