1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. cloudmonitor
  6. EventRule
Viewing docs for volcenginecc v0.0.47
published on Thursday, Jul 9, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.47
published on Thursday, Jul 9, 2026 by Volcengine

    Event rule details

    Example Usage

    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 pulumi
    import json
    import pulumi_volcenginecc as volcenginecc
    
    cloud_monitor_event_rule_demo = volcenginecc.cloudmonitor.EventRule("CloudMonitorEventRuleDemo",
        rule_name="ccapi-test-1001",
        description="autoscaling scale in error",
        event_bus_name="default",
        event_source="autoscaling",
        event_types=["autoscaling:ScalingGroup:ScaleInError"],
        enable_state="enable",
        level="critical",
        notification_id="2049745192xxxxxx",
        filter_pattern_input=json.dumps({
            "Data": {
                "autoscaling": [
                    "1",
                    "3",
                ],
                "ecs": ["2"],
            },
        }))
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cloudmonitor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"Data": map[string]interface{}{
    				"autoscaling": []string{
    					"1",
    					"3",
    				},
    				"ecs": []string{
    					"2",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = cloudmonitor.NewEventRule(ctx, "CloudMonitorEventRuleDemo", &cloudmonitor.EventRuleArgs{
    			RuleName:     pulumi.String("ccapi-test-1001"),
    			Description:  pulumi.String("autoscaling scale in error"),
    			EventBusName: pulumi.String("default"),
    			EventSource:  pulumi.String("autoscaling"),
    			EventTypes: pulumi.StringArray{
    				pulumi.String("autoscaling:ScalingGroup:ScaleInError"),
    			},
    			EnableState:        pulumi.String("enable"),
    			Level:              pulumi.String("critical"),
    			NotificationId:     pulumi.String("2049745192xxxxxx"),
    			FilterPatternInput: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var cloudMonitorEventRuleDemo = new Volcenginecc.Cloudmonitor.EventRule("CloudMonitorEventRuleDemo", new()
        {
            RuleName = "ccapi-test-1001",
            Description = "autoscaling scale in error",
            EventBusName = "default",
            EventSource = "autoscaling",
            EventTypes = new[]
            {
                "autoscaling:ScalingGroup:ScaleInError",
            },
            EnableState = "enable",
            Level = "critical",
            NotificationId = "2049745192xxxxxx",
            FilterPatternInput = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Data"] = new Dictionary<string, object?>
                {
                    ["autoscaling"] = new[]
                    {
                        "1",
                        "3",
                    },
                    ["ecs"] = new[]
                    {
                        "2",
                    },
                },
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.cloudmonitor.EventRule;
    import com.volcengine.volcenginecc.cloudmonitor.EventRuleArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var cloudMonitorEventRuleDemo = new EventRule("cloudMonitorEventRuleDemo", EventRuleArgs.builder()
                .ruleName("ccapi-test-1001")
                .description("autoscaling scale in error")
                .eventBusName("default")
                .eventSource("autoscaling")
                .eventTypes("autoscaling:ScalingGroup:ScaleInError")
                .enableState("enable")
                .level("critical")
                .notificationId("2049745192xxxxxx")
                .filterPatternInput(serializeJson(
                    jsonObject(
                        jsonProperty("Data", jsonObject(
                            jsonProperty("autoscaling", jsonArray(
                                "1", 
                                "3"
                            )),
                            jsonProperty("ecs", jsonArray("2"))
                        ))
                    )))
                .build());
    
        }
    }
    
    resources:
      cloudMonitorEventRuleDemo:
        type: volcenginecc:cloudmonitor:EventRule
        name: CloudMonitorEventRuleDemo
        properties:
          ruleName: ccapi-test-1001
          description: autoscaling scale in error
          eventBusName: default
          eventSource: autoscaling
          eventTypes:
            - autoscaling:ScalingGroup:ScaleInError
          enableState: enable
          level: critical
          notificationId: 2049745192xxxxxx
          filterPatternInput:
            fn::toJSON:
              Data:
                autoscaling:
                  - '1'
                  - '3'
                ecs:
                  - '2'
    
    pulumi {
      required_providers {
        volcenginecc = {
          source = "pulumi/volcenginecc"
        }
      }
    }
    
    resource "volcenginecc_cloudmonitor_eventrule" "CloudMonitorEventRuleDemo" {
      rule_name       = "ccapi-test-1001"
      description     = "autoscaling scale in error"
      event_bus_name  = "default"
      event_source    = "autoscaling"
      event_types     = ["autoscaling:ScalingGroup:ScaleInError"]
      enable_state    = "enable"
      level           = "critical"
      notification_id = "2049745192xxxxxx"
      filter_pattern_input = jsonencode({
        "Data" = {
          "autoscaling" = ["1", "3"]
          "ecs"         = ["2"]
        }
      })
    }
    

    Create EventRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EventRule(name: string, args: EventRuleArgs, opts?: CustomResourceOptions);
    @overload
    def EventRule(resource_name: str,
                  args: EventRuleArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def EventRule(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  event_bus_name: Optional[str] = None,
                  event_source: Optional[str] = None,
                  event_types: Optional[Sequence[str]] = None,
                  level: Optional[str] = None,
                  rule_name: Optional[str] = None,
                  description: Optional[str] = None,
                  enable_state: Optional[str] = None,
                  filter_pattern_input: Optional[str] = None,
                  notification_id: Optional[str] = None)
    func NewEventRule(ctx *Context, name string, args EventRuleArgs, opts ...ResourceOption) (*EventRule, error)
    public EventRule(string name, EventRuleArgs args, CustomResourceOptions? opts = null)
    public EventRule(String name, EventRuleArgs args)
    public EventRule(String name, EventRuleArgs args, CustomResourceOptions options)
    
    type: volcenginecc:cloudmonitor:EventRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "volcenginecc_cloudmonitor_eventrule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EventRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EventRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EventRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EventRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EventRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var eventRuleResource = new Volcenginecc.Cloudmonitor.EventRule("eventRuleResource", new()
    {
        EventBusName = "string",
        EventSource = "string",
        EventTypes = new[]
        {
            "string",
        },
        Level = "string",
        RuleName = "string",
        Description = "string",
        EnableState = "string",
        FilterPatternInput = "string",
        NotificationId = "string",
    });
    
    example, err := cloudmonitor.NewEventRule(ctx, "eventRuleResource", &cloudmonitor.EventRuleArgs{
    	EventBusName: pulumi.String("string"),
    	EventSource:  pulumi.String("string"),
    	EventTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Level:              pulumi.String("string"),
    	RuleName:           pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	EnableState:        pulumi.String("string"),
    	FilterPatternInput: pulumi.String("string"),
    	NotificationId:     pulumi.String("string"),
    })
    
    resource "volcenginecc_cloudmonitor_eventrule" "eventRuleResource" {
      event_bus_name       = "string"
      event_source         = "string"
      event_types          = ["string"]
      level                = "string"
      rule_name            = "string"
      description          = "string"
      enable_state         = "string"
      filter_pattern_input = "string"
      notification_id      = "string"
    }
    
    var eventRuleResource = new EventRule("eventRuleResource", EventRuleArgs.builder()
        .eventBusName("string")
        .eventSource("string")
        .eventTypes("string")
        .level("string")
        .ruleName("string")
        .description("string")
        .enableState("string")
        .filterPatternInput("string")
        .notificationId("string")
        .build());
    
    event_rule_resource = volcenginecc.cloudmonitor.EventRule("eventRuleResource",
        event_bus_name="string",
        event_source="string",
        event_types=["string"],
        level="string",
        rule_name="string",
        description="string",
        enable_state="string",
        filter_pattern_input="string",
        notification_id="string")
    
    const eventRuleResource = new volcenginecc.cloudmonitor.EventRule("eventRuleResource", {
        eventBusName: "string",
        eventSource: "string",
        eventTypes: ["string"],
        level: "string",
        ruleName: "string",
        description: "string",
        enableState: "string",
        filterPatternInput: "string",
        notificationId: "string",
    });
    
    type: volcenginecc:cloudmonitor:EventRule
    properties:
        description: string
        enableState: string
        eventBusName: string
        eventSource: string
        eventTypes:
            - string
        filterPatternInput: string
        level: string
        notificationId: string
        ruleName: string
    

    EventRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EventRule resource accepts the following input properties:

    EventBusName string
    Event bus name. Currently, only 'default' can be entered
    EventSource string
    Event source
    EventTypes List<string>
    Event type
    Level string
    Alert rule severity
    RuleName string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    Description string
    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
    EnableState string

    Rule status

    enable: Rule enabled disable: Rule disabled

    FilterPatternInput string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    NotificationId string
    Policy ID
    EventBusName string
    Event bus name. Currently, only 'default' can be entered
    EventSource string
    Event source
    EventTypes []string
    Event type
    Level string
    Alert rule severity
    RuleName string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    Description string
    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
    EnableState string

    Rule status

    enable: Rule enabled disable: Rule disabled

    FilterPatternInput string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    NotificationId string
    Policy ID
    event_bus_name string
    Event bus name. Currently, only 'default' can be entered
    event_source string
    Event source
    event_types list(string)
    Event type
    level string
    Alert rule severity
    rule_name string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    description string
    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
    enable_state string

    Rule status

    enable: Rule enabled disable: Rule disabled

    filter_pattern_input string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    notification_id string
    Policy ID
    eventBusName String
    Event bus name. Currently, only 'default' can be entered
    eventSource String
    Event source
    eventTypes List<String>
    Event type
    level String
    Alert rule severity
    ruleName String
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    description String
    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
    enableState String

    Rule status

    enable: Rule enabled disable: Rule disabled

    filterPatternInput String
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    notificationId String
    Policy ID
    eventBusName string
    Event bus name. Currently, only 'default' can be entered
    eventSource string
    Event source
    eventTypes string[]
    Event type
    level string
    Alert rule severity
    ruleName string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    description string
    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
    enableState string

    Rule status

    enable: Rule enabled disable: Rule disabled

    filterPatternInput string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    notificationId string
    Policy ID
    event_bus_name str
    Event bus name. Currently, only 'default' can be entered
    event_source str
    Event source
    event_types Sequence[str]
    Event type
    level str
    Alert rule severity
    rule_name str
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    description str
    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
    enable_state str

    Rule status

    enable: Rule enabled disable: Rule disabled

    filter_pattern_input str
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    notification_id str
    Policy ID
    eventBusName String
    Event bus name. Currently, only 'default' can be entered
    eventSource String
    Event source
    eventTypes List<String>
    Event type
    level String
    Alert rule severity
    ruleName String
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    description String
    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
    enableState String

    Rule status

    enable: Rule enabled disable: Rule disabled

    filterPatternInput String
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    notificationId String
    Policy ID

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EventRule resource produces the following output properties:

    AccountId string
    Main account ID
    CreatedAt int
    Event rule creation time
    FilterPattern string
    Filter mode, also known as event matching rule. Read-only
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Event rule ID
    UpdatedAt int
    Event rule update time
    AccountId string
    Main account ID
    CreatedAt int
    Event rule creation time
    FilterPattern string
    Filter mode, also known as event matching rule. Read-only
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Event rule ID
    UpdatedAt int
    Event rule update time
    account_id string
    Main account ID
    created_at number
    Event rule creation time
    filter_pattern string
    Filter mode, also known as event matching rule. Read-only
    id string
    The provider-assigned unique ID for this managed resource.
    rule_id string
    Event rule ID
    updated_at number
    Event rule update time
    accountId String
    Main account ID
    createdAt Integer
    Event rule creation time
    filterPattern String
    Filter mode, also known as event matching rule. Read-only
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Event rule ID
    updatedAt Integer
    Event rule update time
    accountId string
    Main account ID
    createdAt number
    Event rule creation time
    filterPattern string
    Filter mode, also known as event matching rule. Read-only
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    Event rule ID
    updatedAt number
    Event rule update time
    account_id str
    Main account ID
    created_at int
    Event rule creation time
    filter_pattern str
    Filter mode, also known as event matching rule. Read-only
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    Event rule ID
    updated_at int
    Event rule update time
    accountId String
    Main account ID
    createdAt Number
    Event rule creation time
    filterPattern String
    Filter mode, also known as event matching rule. Read-only
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Event rule ID
    updatedAt Number
    Event rule update time

    Look up Existing EventRule Resource

    Get an existing EventRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EventRuleState, opts?: CustomResourceOptions): EventRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[int] = None,
            description: Optional[str] = None,
            enable_state: Optional[str] = None,
            event_bus_name: Optional[str] = None,
            event_source: Optional[str] = None,
            event_types: Optional[Sequence[str]] = None,
            filter_pattern: Optional[str] = None,
            filter_pattern_input: Optional[str] = None,
            level: Optional[str] = None,
            notification_id: Optional[str] = None,
            rule_id: Optional[str] = None,
            rule_name: Optional[str] = None,
            updated_at: Optional[int] = None) -> EventRule
    func GetEventRule(ctx *Context, name string, id IDInput, state *EventRuleState, opts ...ResourceOption) (*EventRule, error)
    public static EventRule Get(string name, Input<string> id, EventRuleState? state, CustomResourceOptions? opts = null)
    public static EventRule get(String name, Output<String> id, EventRuleState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:cloudmonitor:EventRule    get:      id: ${id}
    import {
      to = volcenginecc_cloudmonitor_eventrule.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Main account ID
    CreatedAt int
    Event rule creation time
    Description string
    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
    EnableState string

    Rule status

    enable: Rule enabled disable: Rule disabled

    EventBusName string
    Event bus name. Currently, only 'default' can be entered
    EventSource string
    Event source
    EventTypes List<string>
    Event type
    FilterPattern string
    Filter mode, also known as event matching rule. Read-only
    FilterPatternInput string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    Level string
    Alert rule severity
    NotificationId string
    Policy ID
    RuleId string
    Event rule ID
    RuleName string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    UpdatedAt int
    Event rule update time
    AccountId string
    Main account ID
    CreatedAt int
    Event rule creation time
    Description string
    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
    EnableState string

    Rule status

    enable: Rule enabled disable: Rule disabled

    EventBusName string
    Event bus name. Currently, only 'default' can be entered
    EventSource string
    Event source
    EventTypes []string
    Event type
    FilterPattern string
    Filter mode, also known as event matching rule. Read-only
    FilterPatternInput string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    Level string
    Alert rule severity
    NotificationId string
    Policy ID
    RuleId string
    Event rule ID
    RuleName string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    UpdatedAt int
    Event rule update time
    account_id string
    Main account ID
    created_at number
    Event rule creation time
    description string
    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
    enable_state string

    Rule status

    enable: Rule enabled disable: Rule disabled

    event_bus_name string
    Event bus name. Currently, only 'default' can be entered
    event_source string
    Event source
    event_types list(string)
    Event type
    filter_pattern string
    Filter mode, also known as event matching rule. Read-only
    filter_pattern_input string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    level string
    Alert rule severity
    notification_id string
    Policy ID
    rule_id string
    Event rule ID
    rule_name string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    updated_at number
    Event rule update time
    accountId String
    Main account ID
    createdAt Integer
    Event rule creation time
    description String
    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
    enableState String

    Rule status

    enable: Rule enabled disable: Rule disabled

    eventBusName String
    Event bus name. Currently, only 'default' can be entered
    eventSource String
    Event source
    eventTypes List<String>
    Event type
    filterPattern String
    Filter mode, also known as event matching rule. Read-only
    filterPatternInput String
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    level String
    Alert rule severity
    notificationId String
    Policy ID
    ruleId String
    Event rule ID
    ruleName String
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    updatedAt Integer
    Event rule update time
    accountId string
    Main account ID
    createdAt number
    Event rule creation time
    description string
    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
    enableState string

    Rule status

    enable: Rule enabled disable: Rule disabled

    eventBusName string
    Event bus name. Currently, only 'default' can be entered
    eventSource string
    Event source
    eventTypes string[]
    Event type
    filterPattern string
    Filter mode, also known as event matching rule. Read-only
    filterPatternInput string
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    level string
    Alert rule severity
    notificationId string
    Policy ID
    ruleId string
    Event rule ID
    ruleName string
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    updatedAt number
    Event rule update time
    account_id str
    Main account ID
    created_at int
    Event rule creation time
    description str
    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
    enable_state str

    Rule status

    enable: Rule enabled disable: Rule disabled

    event_bus_name str
    Event bus name. Currently, only 'default' can be entered
    event_source str
    Event source
    event_types Sequence[str]
    Event type
    filter_pattern str
    Filter mode, also known as event matching rule. Read-only
    filter_pattern_input str
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    level str
    Alert rule severity
    notification_id str
    Policy ID
    rule_id str
    Event rule ID
    rule_name str
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    updated_at int
    Event rule update time
    accountId String
    Main account ID
    createdAt Number
    Event rule creation time
    description String
    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
    enableState String

    Rule status

    enable: Rule enabled disable: Rule disabled

    eventBusName String
    Event bus name. Currently, only 'default' can be entered
    eventSource String
    Event source
    eventTypes List<String>
    Event type
    filterPattern String
    Filter mode, also known as event matching rule. Read-only
    filterPatternInput String
    Filter mode, also known as event matching rule. Used for creation and modification. Format: {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
    level String
    Alert rule severity
    notificationId String
    Policy ID
    ruleId String
    Event rule ID
    ruleName String
    Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
    updatedAt Number
    Event rule update time

    Import

    $ pulumi import volcenginecc:cloudmonitor/eventRule:EventRule example "rule_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.47
    published on Thursday, Jul 9, 2026 by Volcengine

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial