@volcengine/pulumi-volcenginecc 0.0.43 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/alb/acl.d.ts +20 -20
  2. package/alb/acl.js +1 -1
  3. package/alb/certificate.d.ts +19 -3
  4. package/alb/certificate.js +3 -4
  5. package/alb/certificate.js.map +1 -1
  6. package/alb/getAcl.d.ts +11 -11
  7. package/alb/getCertificate.d.ts +5 -1
  8. package/alb/getCertificate.js.map +1 -1
  9. package/alb/getListener.d.ts +20 -20
  10. package/alb/getServerGroup.d.ts +9 -9
  11. package/alb/listener.d.ts +52 -52
  12. package/alb/listener.js +1 -1
  13. package/alb/serverGroup.d.ts +24 -24
  14. package/alb/serverGroup.js +1 -1
  15. package/cbr/backupPolicy.d.ts +2 -2
  16. package/cbr/backupPolicy.js +2 -2
  17. package/cloudidentity/userProvisioning.d.ts +2 -2
  18. package/cloudidentity/userProvisioning.js +2 -2
  19. package/cloudmonitor/eventRule.d.ts +226 -0
  20. package/cloudmonitor/eventRule.js +126 -0
  21. package/cloudmonitor/eventRule.js.map +1 -0
  22. package/cloudmonitor/getEventRule.d.ts +65 -0
  23. package/cloudmonitor/getEventRule.js +28 -0
  24. package/cloudmonitor/getEventRule.js.map +1 -0
  25. package/cloudmonitor/getEventRules.d.ts +22 -0
  26. package/cloudmonitor/getEventRules.js +24 -0
  27. package/cloudmonitor/getEventRules.js.map +1 -0
  28. package/cloudmonitor/getRule.d.ts +11 -11
  29. package/cloudmonitor/index.d.ts +9 -0
  30. package/cloudmonitor/index.js +12 -1
  31. package/cloudmonitor/index.js.map +1 -1
  32. package/cloudmonitor/rule.d.ts +33 -33
  33. package/cr/getRegistry.d.ts +11 -11
  34. package/cr/getVpcEndpoint.d.ts +45 -0
  35. package/cr/getVpcEndpoint.js +28 -0
  36. package/cr/getVpcEndpoint.js.map +1 -0
  37. package/cr/getVpcEndpoints.d.ts +22 -0
  38. package/cr/getVpcEndpoints.js +24 -0
  39. package/cr/getVpcEndpoints.js.map +1 -0
  40. package/cr/index.d.ts +9 -0
  41. package/cr/index.js +12 -1
  42. package/cr/index.js.map +1 -1
  43. package/cr/registry.d.ts +28 -28
  44. package/cr/registry.js +1 -1
  45. package/cr/vpcEndpoint.d.ts +62 -0
  46. package/cr/vpcEndpoint.js +66 -0
  47. package/cr/vpcEndpoint.js.map +1 -0
  48. package/directconnect/connection.d.ts +332 -0
  49. package/directconnect/connection.js +163 -0
  50. package/directconnect/connection.js.map +1 -0
  51. package/directconnect/getConnection.d.ts +145 -0
  52. package/directconnect/getConnection.js +28 -0
  53. package/directconnect/getConnection.js.map +1 -0
  54. package/directconnect/getConnections.d.ts +22 -0
  55. package/directconnect/getConnections.js +24 -0
  56. package/directconnect/getConnections.js.map +1 -0
  57. package/directconnect/index.d.ts +9 -0
  58. package/directconnect/index.js +12 -1
  59. package/directconnect/index.js.map +1 -1
  60. package/dns/backupSchedule.d.ts +89 -0
  61. package/dns/backupSchedule.js +80 -0
  62. package/dns/backupSchedule.js.map +1 -0
  63. package/dns/getBackupSchedule.d.ts +48 -0
  64. package/dns/getBackupSchedule.js +28 -0
  65. package/dns/getBackupSchedule.js.map +1 -0
  66. package/dns/getBackupSchedules.d.ts +22 -0
  67. package/dns/getBackupSchedules.js +24 -0
  68. package/dns/getBackupSchedules.js.map +1 -0
  69. package/dns/index.d.ts +9 -0
  70. package/dns/index.js +12 -1
  71. package/dns/index.js.map +1 -1
  72. package/fwcenter/addressBook.d.ts +210 -0
  73. package/fwcenter/addressBook.js +115 -0
  74. package/fwcenter/addressBook.js.map +1 -0
  75. package/fwcenter/controlPolicy.d.ts +437 -0
  76. package/fwcenter/controlPolicy.js +183 -0
  77. package/fwcenter/controlPolicy.js.map +1 -0
  78. package/fwcenter/getAddressBook.d.ts +93 -0
  79. package/fwcenter/getAddressBook.js +28 -0
  80. package/fwcenter/getAddressBook.js.map +1 -0
  81. package/fwcenter/getAddressBooks.d.ts +22 -0
  82. package/fwcenter/getAddressBooks.js +24 -0
  83. package/fwcenter/getAddressBooks.js.map +1 -0
  84. package/fwcenter/getControlPolicies.d.ts +22 -0
  85. package/fwcenter/getControlPolicies.js +24 -0
  86. package/fwcenter/getControlPolicies.js.map +1 -0
  87. package/fwcenter/getControlPolicy.d.ts +185 -0
  88. package/fwcenter/getControlPolicy.js +28 -0
  89. package/fwcenter/getControlPolicy.js.map +1 -0
  90. package/fwcenter/getVpcFireWallAclRule.d.ts +189 -0
  91. package/fwcenter/getVpcFireWallAclRule.js +28 -0
  92. package/fwcenter/getVpcFireWallAclRule.js.map +1 -0
  93. package/fwcenter/getVpcFireWallAclRules.d.ts +22 -0
  94. package/fwcenter/getVpcFireWallAclRules.js +24 -0
  95. package/fwcenter/getVpcFireWallAclRules.js.map +1 -0
  96. package/fwcenter/index.d.ts +27 -0
  97. package/fwcenter/index.js +34 -1
  98. package/fwcenter/index.js.map +1 -1
  99. package/fwcenter/vpcFireWallAclRule.d.ts +446 -0
  100. package/fwcenter/vpcFireWallAclRule.js +186 -0
  101. package/fwcenter/vpcFireWallAclRule.js.map +1 -0
  102. package/gtm/getGtm.d.ts +9 -0
  103. package/gtm/getGtm.js.map +1 -1
  104. package/gtm/getPolicies.d.ts +22 -0
  105. package/gtm/getPolicies.js +24 -0
  106. package/gtm/getPolicies.js.map +1 -0
  107. package/gtm/getPolicy.d.ts +65 -0
  108. package/gtm/getPolicy.js +28 -0
  109. package/gtm/getPolicy.js.map +1 -0
  110. package/gtm/gtm.d.ts +18 -0
  111. package/gtm/gtm.js +4 -0
  112. package/gtm/gtm.js.map +1 -1
  113. package/gtm/index.d.ts +9 -0
  114. package/gtm/index.js +12 -1
  115. package/gtm/index.js.map +1 -1
  116. package/gtm/policy.d.ts +114 -0
  117. package/gtm/policy.js +76 -0
  118. package/gtm/policy.js.map +1 -0
  119. package/index.d.ts +2 -1
  120. package/index.js +4 -2
  121. package/index.js.map +1 -1
  122. package/kafka/allowList.d.ts +0 -22
  123. package/kafka/allowList.js +0 -22
  124. package/kafka/allowList.js.map +1 -1
  125. package/kafka/getGroup.d.ts +65 -0
  126. package/kafka/getGroup.js +28 -0
  127. package/kafka/getGroup.js.map +1 -0
  128. package/kafka/getGroups.d.ts +22 -0
  129. package/kafka/getGroups.js +24 -0
  130. package/kafka/getGroups.js.map +1 -0
  131. package/kafka/group.d.ts +127 -0
  132. package/kafka/group.js +93 -0
  133. package/kafka/group.js.map +1 -0
  134. package/kafka/index.d.ts +9 -0
  135. package/kafka/index.js +12 -1
  136. package/kafka/index.js.map +1 -1
  137. package/organization/getServiceControlPolicyEnabler.d.ts +48 -0
  138. package/organization/getServiceControlPolicyEnabler.js +28 -0
  139. package/organization/getServiceControlPolicyEnabler.js.map +1 -0
  140. package/organization/getServiceControlPolicyEnablers.d.ts +22 -0
  141. package/organization/getServiceControlPolicyEnablers.js +24 -0
  142. package/organization/getServiceControlPolicyEnablers.js.map +1 -0
  143. package/organization/index.d.ts +9 -0
  144. package/organization/index.js +12 -1
  145. package/organization/index.js.map +1 -1
  146. package/organization/serviceControlPolicyEnabler.d.ts +78 -0
  147. package/organization/serviceControlPolicyEnabler.js +71 -0
  148. package/organization/serviceControlPolicyEnabler.js.map +1 -0
  149. package/package.json +1 -1
  150. package/rabbitmq/allowList.d.ts +0 -17
  151. package/rabbitmq/allowList.js +0 -17
  152. package/rabbitmq/allowList.js.map +1 -1
  153. package/rdsmysql/allowList.d.ts +1 -0
  154. package/rdsmysql/allowList.js +1 -1
  155. package/rdsmysql/allowList.js.map +1 -1
  156. package/rdsmysql/getInstance.d.ts +16 -0
  157. package/rdsmysql/getInstance.js.map +1 -1
  158. package/rdsmysql/instance.d.ts +48 -0
  159. package/rdsmysql/instance.js +8 -0
  160. package/rdsmysql/instance.js.map +1 -1
  161. package/redis/getInstance.d.ts +4 -0
  162. package/redis/getInstance.js.map +1 -1
  163. package/redis/instance.d.ts +3 -0
  164. package/redis/instance.js +3 -0
  165. package/redis/instance.js.map +1 -1
  166. package/redis/parameterGroup.d.ts +2 -2
  167. package/redis/parameterGroup.js +2 -2
  168. package/rocketmq/accessKey.d.ts +126 -0
  169. package/rocketmq/accessKey.js +80 -0
  170. package/rocketmq/accessKey.js.map +1 -0
  171. package/rocketmq/getAccessKey.d.ts +73 -0
  172. package/rocketmq/getAccessKey.js +28 -0
  173. package/rocketmq/getAccessKey.js.map +1 -0
  174. package/rocketmq/getAccessKeys.d.ts +22 -0
  175. package/rocketmq/getAccessKeys.js +24 -0
  176. package/rocketmq/getAccessKeys.js.map +1 -0
  177. package/rocketmq/index.d.ts +9 -0
  178. package/rocketmq/index.js +12 -1
  179. package/rocketmq/index.js.map +1 -1
  180. package/tls/alarmWebhookIntegrationType.d.ts +159 -0
  181. package/tls/alarmWebhookIntegrationType.js +108 -0
  182. package/tls/alarmWebhookIntegrationType.js.map +1 -0
  183. package/tls/etl.d.ts +222 -0
  184. package/tls/etl.js +113 -0
  185. package/tls/etl.js.map +1 -0
  186. package/tls/getAlarmWebhookIntegrationType.d.ts +73 -0
  187. package/tls/getAlarmWebhookIntegrationType.js +28 -0
  188. package/tls/getAlarmWebhookIntegrationType.js.map +1 -0
  189. package/tls/getAlarmWebhookIntegrationTypes.d.ts +22 -0
  190. package/tls/getAlarmWebhookIntegrationTypes.js +24 -0
  191. package/tls/getAlarmWebhookIntegrationTypes.js.map +1 -0
  192. package/tls/getEtl.d.ts +109 -0
  193. package/tls/getEtl.js +28 -0
  194. package/tls/getEtl.js.map +1 -0
  195. package/tls/getEtls.d.ts +22 -0
  196. package/tls/getEtls.js +24 -0
  197. package/tls/getEtls.js.map +1 -0
  198. package/tls/getHost.d.ts +52 -0
  199. package/tls/getHost.js +28 -0
  200. package/tls/getHost.js.map +1 -0
  201. package/tls/getHostGroup.d.ts +113 -0
  202. package/tls/getHostGroup.js +28 -0
  203. package/tls/getHostGroup.js.map +1 -0
  204. package/tls/getHostGroups.d.ts +22 -0
  205. package/tls/getHostGroups.js +24 -0
  206. package/tls/getHostGroups.js.map +1 -0
  207. package/tls/getHosts.d.ts +22 -0
  208. package/tls/getHosts.js +24 -0
  209. package/tls/getHosts.js.map +1 -0
  210. package/tls/host.d.ts +97 -0
  211. package/tls/host.js +82 -0
  212. package/tls/host.js.map +1 -0
  213. package/tls/hostGroup.d.ts +254 -0
  214. package/tls/hostGroup.js +121 -0
  215. package/tls/hostGroup.js.map +1 -0
  216. package/tls/index.d.ts +36 -0
  217. package/tls/index.js +46 -1
  218. package/tls/index.js.map +1 -1
  219. package/tos/bucket.d.ts +12 -0
  220. package/tos/bucket.js +2 -0
  221. package/tos/bucket.js.map +1 -1
  222. package/tos/bucketMirrorBack.d.ts +62 -0
  223. package/tos/bucketMirrorBack.js +63 -0
  224. package/tos/bucketMirrorBack.js.map +1 -0
  225. package/tos/bucketRename.d.ts +74 -0
  226. package/tos/bucketRename.js +72 -0
  227. package/tos/bucketRename.js.map +1 -0
  228. package/tos/bucketWebsite.d.ts +98 -0
  229. package/tos/bucketWebsite.js +69 -0
  230. package/tos/bucketWebsite.js.map +1 -0
  231. package/tos/getBucket.d.ts +4 -0
  232. package/tos/getBucket.js.map +1 -1
  233. package/tos/getBucketMirrorBack.d.ts +45 -0
  234. package/tos/getBucketMirrorBack.js +28 -0
  235. package/tos/getBucketMirrorBack.js.map +1 -0
  236. package/tos/getBucketMirrorBacks.d.ts +22 -0
  237. package/tos/getBucketMirrorBacks.js +24 -0
  238. package/tos/getBucketMirrorBacks.js.map +1 -0
  239. package/tos/getBucketRename.d.ts +44 -0
  240. package/tos/getBucketRename.js +28 -0
  241. package/tos/getBucketRename.js.map +1 -0
  242. package/tos/getBucketRenames.d.ts +22 -0
  243. package/tos/getBucketRenames.js +24 -0
  244. package/tos/getBucketRenames.js.map +1 -0
  245. package/tos/getBucketWebsite.d.ts +57 -0
  246. package/tos/getBucketWebsite.js +28 -0
  247. package/tos/getBucketWebsite.js.map +1 -0
  248. package/tos/getBucketWebsites.d.ts +22 -0
  249. package/tos/getBucketWebsites.js +24 -0
  250. package/tos/getBucketWebsites.js.map +1 -0
  251. package/tos/index.d.ts +27 -0
  252. package/tos/index.js +34 -1
  253. package/tos/index.js.map +1 -1
  254. package/types/input.d.ts +1493 -114
  255. package/types/output.d.ts +4728 -1830
  256. package/veenedge/getVpc.d.ts +101 -0
  257. package/veenedge/getVpc.js +28 -0
  258. package/veenedge/getVpc.js.map +1 -0
  259. package/veenedge/getVpcs.d.ts +22 -0
  260. package/veenedge/getVpcs.js +24 -0
  261. package/veenedge/getVpcs.js.map +1 -0
  262. package/veenedge/index.d.ts +9 -0
  263. package/veenedge/index.js +28 -0
  264. package/veenedge/index.js.map +1 -0
  265. package/veenedge/vpc.d.ts +216 -0
  266. package/veenedge/vpc.js +131 -0
  267. package/veenedge/vpc.js.map +1 -0
  268. package/vke/node.d.ts +1 -1
  269. package/vke/node.js +0 -3
  270. package/vke/node.js.map +1 -1
  271. package/vmp/ruleFile.d.ts +2 -2
  272. package/vmp/ruleFile.js +2 -2
  273. package/vpc/vpc.d.ts +4 -0
  274. package/vpc/vpc.js +1 -1
  275. package/vpc/vpc.js.map +1 -1
  276. package/waf/getHostGroup.d.ts +69 -0
  277. package/waf/getHostGroup.js +28 -0
  278. package/waf/getHostGroup.js.map +1 -0
  279. package/waf/getHostGroups.d.ts +22 -0
  280. package/waf/getHostGroups.js +24 -0
  281. package/waf/getHostGroups.js.map +1 -0
  282. package/waf/hostGroup.d.ts +135 -0
  283. package/waf/hostGroup.js +92 -0
  284. package/waf/hostGroup.js.map +1 -0
  285. package/waf/index.d.ts +9 -0
  286. package/waf/index.js +12 -1
  287. package/waf/index.js.map +1 -1
@@ -0,0 +1,226 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Event rule details
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
10
+ *
11
+ * const cloudMonitorEventRuleDemo = new volcenginecc.cloudmonitor.EventRule("CloudMonitorEventRuleDemo", {
12
+ * ruleName: "ccapi-test-1001",
13
+ * description: "autoscaling scale in error",
14
+ * eventBusName: "default",
15
+ * eventSource: "autoscaling",
16
+ * eventTypes: ["autoscaling:ScalingGroup:ScaleInError"],
17
+ * enableState: "enable",
18
+ * level: "critical",
19
+ * notificationId: "2049745192xxxxxx",
20
+ * filterPatternInput: JSON.stringify({
21
+ * Data: {
22
+ * autoscaling: [
23
+ * "1",
24
+ * "3",
25
+ * ],
26
+ * ecs: ["2"],
27
+ * },
28
+ * }),
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * ```sh
35
+ * $ pulumi import volcenginecc:cloudmonitor/eventRule:EventRule example "rule_id"
36
+ * ```
37
+ */
38
+ export declare class EventRule extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing EventRule resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EventRuleState, opts?: pulumi.CustomResourceOptions): EventRule;
49
+ /**
50
+ * Returns true if the given object is an instance of EventRule. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is EventRule;
54
+ /**
55
+ * Main account ID
56
+ */
57
+ readonly accountId: pulumi.Output<string>;
58
+ /**
59
+ * Event rule creation time
60
+ */
61
+ readonly createdAt: pulumi.Output<number>;
62
+ /**
63
+ * Rule description Must not start with a digit, hyphen (-), or Chinese punctuation Can only contain Chinese characters,
64
+ * letters, digits, underscore (_), hyphen (-), or Chinese punctuation Length limit: 0–255 characters
65
+ */
66
+ readonly description: pulumi.Output<string>;
67
+ /**
68
+ * Rule status enable: Rule enabled disable: Rule disabled
69
+ */
70
+ readonly enableState: pulumi.Output<string>;
71
+ /**
72
+ * Event bus name. Currently, only 'default' can be entered
73
+ */
74
+ readonly eventBusName: pulumi.Output<string>;
75
+ /**
76
+ * Event source
77
+ */
78
+ readonly eventSource: pulumi.Output<string>;
79
+ /**
80
+ * Event type
81
+ */
82
+ readonly eventTypes: pulumi.Output<string[]>;
83
+ /**
84
+ * Filter mode, also known as event matching rule. Read-only
85
+ */
86
+ readonly filterPattern: pulumi.Output<string>;
87
+ /**
88
+ * Filter mode, also known as event matching rule. Used for creation and modification. Format:
89
+ * {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
90
+ */
91
+ readonly filterPatternInput: pulumi.Output<string>;
92
+ /**
93
+ * Alert rule severity
94
+ */
95
+ readonly level: pulumi.Output<string>;
96
+ /**
97
+ * Policy ID
98
+ */
99
+ readonly notificationId: pulumi.Output<string>;
100
+ /**
101
+ * Event rule ID
102
+ */
103
+ readonly ruleId: pulumi.Output<string>;
104
+ /**
105
+ * Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
106
+ */
107
+ readonly ruleName: pulumi.Output<string>;
108
+ /**
109
+ * Event rule update time
110
+ */
111
+ readonly updatedAt: pulumi.Output<number>;
112
+ /**
113
+ * Create a EventRule resource with the given unique name, arguments, and options.
114
+ *
115
+ * @param name The _unique_ name of the resource.
116
+ * @param args The arguments to use to populate this resource's properties.
117
+ * @param opts A bag of options that control this resource's behavior.
118
+ */
119
+ constructor(name: string, args: EventRuleArgs, opts?: pulumi.CustomResourceOptions);
120
+ }
121
+ /**
122
+ * Input properties used for looking up and filtering EventRule resources.
123
+ */
124
+ export interface EventRuleState {
125
+ /**
126
+ * Main account ID
127
+ */
128
+ accountId?: pulumi.Input<string>;
129
+ /**
130
+ * Event rule creation time
131
+ */
132
+ createdAt?: pulumi.Input<number>;
133
+ /**
134
+ * Rule description Must not start with a digit, hyphen (-), or Chinese punctuation Can only contain Chinese characters,
135
+ * letters, digits, underscore (_), hyphen (-), or Chinese punctuation Length limit: 0–255 characters
136
+ */
137
+ description?: pulumi.Input<string>;
138
+ /**
139
+ * Rule status enable: Rule enabled disable: Rule disabled
140
+ */
141
+ enableState?: pulumi.Input<string>;
142
+ /**
143
+ * Event bus name. Currently, only 'default' can be entered
144
+ */
145
+ eventBusName?: pulumi.Input<string>;
146
+ /**
147
+ * Event source
148
+ */
149
+ eventSource?: pulumi.Input<string>;
150
+ /**
151
+ * Event type
152
+ */
153
+ eventTypes?: pulumi.Input<pulumi.Input<string>[]>;
154
+ /**
155
+ * Filter mode, also known as event matching rule. Read-only
156
+ */
157
+ filterPattern?: pulumi.Input<string>;
158
+ /**
159
+ * Filter mode, also known as event matching rule. Used for creation and modification. Format:
160
+ * {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
161
+ */
162
+ filterPatternInput?: pulumi.Input<string>;
163
+ /**
164
+ * Alert rule severity
165
+ */
166
+ level?: pulumi.Input<string>;
167
+ /**
168
+ * Policy ID
169
+ */
170
+ notificationId?: pulumi.Input<string>;
171
+ /**
172
+ * Event rule ID
173
+ */
174
+ ruleId?: pulumi.Input<string>;
175
+ /**
176
+ * Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
177
+ */
178
+ ruleName?: pulumi.Input<string>;
179
+ /**
180
+ * Event rule update time
181
+ */
182
+ updatedAt?: pulumi.Input<number>;
183
+ }
184
+ /**
185
+ * The set of arguments for constructing a EventRule resource.
186
+ */
187
+ export interface EventRuleArgs {
188
+ /**
189
+ * Rule description Must not start with a digit, hyphen (-), or Chinese punctuation Can only contain Chinese characters,
190
+ * letters, digits, underscore (_), hyphen (-), or Chinese punctuation Length limit: 0–255 characters
191
+ */
192
+ description?: pulumi.Input<string>;
193
+ /**
194
+ * Rule status enable: Rule enabled disable: Rule disabled
195
+ */
196
+ enableState?: pulumi.Input<string>;
197
+ /**
198
+ * Event bus name. Currently, only 'default' can be entered
199
+ */
200
+ eventBusName: pulumi.Input<string>;
201
+ /**
202
+ * Event source
203
+ */
204
+ eventSource: pulumi.Input<string>;
205
+ /**
206
+ * Event type
207
+ */
208
+ eventTypes: pulumi.Input<pulumi.Input<string>[]>;
209
+ /**
210
+ * Filter mode, also known as event matching rule. Used for creation and modification. Format:
211
+ * {"Data":{"autoscaling":["1","3"],"ecs":["2"]}}
212
+ */
213
+ filterPatternInput?: pulumi.Input<string>;
214
+ /**
215
+ * Alert rule severity
216
+ */
217
+ level: pulumi.Input<string>;
218
+ /**
219
+ * Policy ID
220
+ */
221
+ notificationId?: pulumi.Input<string>;
222
+ /**
223
+ * Rule name Length limit: 1–128 characters Must not start with a digit or hyphen (-)
224
+ */
225
+ ruleName: pulumi.Input<string>;
226
+ }
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.EventRule = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Event rule details
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
16
+ *
17
+ * const cloudMonitorEventRuleDemo = new volcenginecc.cloudmonitor.EventRule("CloudMonitorEventRuleDemo", {
18
+ * ruleName: "ccapi-test-1001",
19
+ * description: "autoscaling scale in error",
20
+ * eventBusName: "default",
21
+ * eventSource: "autoscaling",
22
+ * eventTypes: ["autoscaling:ScalingGroup:ScaleInError"],
23
+ * enableState: "enable",
24
+ * level: "critical",
25
+ * notificationId: "2049745192xxxxxx",
26
+ * filterPatternInput: JSON.stringify({
27
+ * Data: {
28
+ * autoscaling: [
29
+ * "1",
30
+ * "3",
31
+ * ],
32
+ * ecs: ["2"],
33
+ * },
34
+ * }),
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * ```sh
41
+ * $ pulumi import volcenginecc:cloudmonitor/eventRule:EventRule example "rule_id"
42
+ * ```
43
+ */
44
+ class EventRule extends pulumi.CustomResource {
45
+ /**
46
+ * Get an existing EventRule resource's state with the given name, ID, and optional extra
47
+ * properties used to qualify the lookup.
48
+ *
49
+ * @param name The _unique_ name of the resulting resource.
50
+ * @param id The _unique_ provider ID of the resource to lookup.
51
+ * @param state Any extra arguments used during the lookup.
52
+ * @param opts Optional settings to control the behavior of the CustomResource.
53
+ */
54
+ static get(name, id, state, opts) {
55
+ return new EventRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
56
+ }
57
+ /**
58
+ * Returns true if the given object is an instance of EventRule. This is designed to work even
59
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
+ */
61
+ static isInstance(obj) {
62
+ if (obj === undefined || obj === null) {
63
+ return false;
64
+ }
65
+ return obj['__pulumiType'] === EventRule.__pulumiType;
66
+ }
67
+ constructor(name, argsOrState, opts) {
68
+ let resourceInputs = {};
69
+ opts = opts || {};
70
+ if (opts.id) {
71
+ const state = argsOrState;
72
+ resourceInputs["accountId"] = state ? state.accountId : undefined;
73
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
74
+ resourceInputs["description"] = state ? state.description : undefined;
75
+ resourceInputs["enableState"] = state ? state.enableState : undefined;
76
+ resourceInputs["eventBusName"] = state ? state.eventBusName : undefined;
77
+ resourceInputs["eventSource"] = state ? state.eventSource : undefined;
78
+ resourceInputs["eventTypes"] = state ? state.eventTypes : undefined;
79
+ resourceInputs["filterPattern"] = state ? state.filterPattern : undefined;
80
+ resourceInputs["filterPatternInput"] = state ? state.filterPatternInput : undefined;
81
+ resourceInputs["level"] = state ? state.level : undefined;
82
+ resourceInputs["notificationId"] = state ? state.notificationId : undefined;
83
+ resourceInputs["ruleId"] = state ? state.ruleId : undefined;
84
+ resourceInputs["ruleName"] = state ? state.ruleName : undefined;
85
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
86
+ }
87
+ else {
88
+ const args = argsOrState;
89
+ if ((!args || args.eventBusName === undefined) && !opts.urn) {
90
+ throw new Error("Missing required property 'eventBusName'");
91
+ }
92
+ if ((!args || args.eventSource === undefined) && !opts.urn) {
93
+ throw new Error("Missing required property 'eventSource'");
94
+ }
95
+ if ((!args || args.eventTypes === undefined) && !opts.urn) {
96
+ throw new Error("Missing required property 'eventTypes'");
97
+ }
98
+ if ((!args || args.level === undefined) && !opts.urn) {
99
+ throw new Error("Missing required property 'level'");
100
+ }
101
+ if ((!args || args.ruleName === undefined) && !opts.urn) {
102
+ throw new Error("Missing required property 'ruleName'");
103
+ }
104
+ resourceInputs["description"] = args ? args.description : undefined;
105
+ resourceInputs["enableState"] = args ? args.enableState : undefined;
106
+ resourceInputs["eventBusName"] = args ? args.eventBusName : undefined;
107
+ resourceInputs["eventSource"] = args ? args.eventSource : undefined;
108
+ resourceInputs["eventTypes"] = args ? args.eventTypes : undefined;
109
+ resourceInputs["filterPatternInput"] = args ? args.filterPatternInput : undefined;
110
+ resourceInputs["level"] = args ? args.level : undefined;
111
+ resourceInputs["notificationId"] = args ? args.notificationId : undefined;
112
+ resourceInputs["ruleName"] = args ? args.ruleName : undefined;
113
+ resourceInputs["accountId"] = undefined /*out*/;
114
+ resourceInputs["createdAt"] = undefined /*out*/;
115
+ resourceInputs["filterPattern"] = undefined /*out*/;
116
+ resourceInputs["ruleId"] = undefined /*out*/;
117
+ resourceInputs["updatedAt"] = undefined /*out*/;
118
+ }
119
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
120
+ super(EventRule.__pulumiType, name, resourceInputs, opts);
121
+ }
122
+ }
123
+ exports.EventRule = EventRule;
124
+ /** @internal */
125
+ EventRule.__pulumiType = 'volcenginecc:cloudmonitor/eventRule:EventRule';
126
+ //# sourceMappingURL=eventRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventRule.js","sourceRoot":"","sources":["../../cloudmonitor/eventRule.ts"],"names":[],"mappings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UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AApJL,8BAqJC;AAvIG,gBAAgB;AACO,sBAAY,GAAG,+CAA+C,CAAC"}
@@ -0,0 +1,65 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Data Source schema for Volcengine::CloudMonitor::EventRule
4
+ */
5
+ export declare function getEventRule(args: GetEventRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetEventRuleResult>;
6
+ /**
7
+ * A collection of arguments for invoking getEventRule.
8
+ */
9
+ export interface GetEventRuleArgs {
10
+ /**
11
+ * Uniquely identifies the resource.
12
+ */
13
+ id: string;
14
+ }
15
+ /**
16
+ * A collection of values returned by getEventRule.
17
+ */
18
+ export interface GetEventRuleResult {
19
+ /**
20
+ * Main account ID
21
+ */
22
+ readonly accountId: string;
23
+ /**
24
+ * Event rule creation time
25
+ */
26
+ readonly createdAt: number;
27
+ /**
28
+ * Rule description
29
+ * Must not start with a digit, hyphen (-), or Chinese punctuation
30
+ * Can only contain Chinese characters, letters, digits, underscore (_), hyphen (-), or Chinese punctuation
31
+ * Length limit: 0–255 characters
32
+ */
33
+ readonly description: string;
34
+ /**
35
+ * Rule status
36
+ */
37
+ readonly enableState: string;
38
+ readonly eventBusName: string;
39
+ readonly eventSource: string;
40
+ readonly eventTypes: string[];
41
+ readonly filterPattern: string;
42
+ readonly filterPatternInput: string;
43
+ /**
44
+ * Uniquely identifies the resource.
45
+ */
46
+ readonly id: string;
47
+ readonly level: string;
48
+ readonly notificationId: string;
49
+ readonly ruleId: string;
50
+ readonly ruleName: string;
51
+ readonly updatedAt: number;
52
+ }
53
+ /**
54
+ * Data Source schema for Volcengine::CloudMonitor::EventRule
55
+ */
56
+ export declare function getEventRuleOutput(args: GetEventRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEventRuleResult>;
57
+ /**
58
+ * A collection of arguments for invoking getEventRule.
59
+ */
60
+ export interface GetEventRuleOutputArgs {
61
+ /**
62
+ * Uniquely identifies the resource.
63
+ */
64
+ id: pulumi.Input<string>;
65
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getEventRuleOutput = exports.getEventRule = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Data Source schema for Volcengine::CloudMonitor::EventRule
10
+ */
11
+ function getEventRule(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:cloudmonitor/getEventRule:getEventRule", {
14
+ "id": args.id,
15
+ }, opts);
16
+ }
17
+ exports.getEventRule = getEventRule;
18
+ /**
19
+ * Data Source schema for Volcengine::CloudMonitor::EventRule
20
+ */
21
+ function getEventRuleOutput(args, opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invokeOutput("volcenginecc:cloudmonitor/getEventRule:getEventRule", {
24
+ "id": args.id,
25
+ }, opts);
26
+ }
27
+ exports.getEventRuleOutput = getEventRuleOutput;
28
+ //# sourceMappingURL=getEventRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEventRule.js","sourceRoot":"","sources":["../../cloudmonitor/getEventRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qDAAqD,EAAE;QAChF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC;AAkDD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,qDAAqD,EAAE;QACtF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC"}
@@ -0,0 +1,22 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Plural Data Source schema for Volcengine::CloudMonitor::EventRule
4
+ */
5
+ export declare function getEventRules(opts?: pulumi.InvokeOptions): Promise<GetEventRulesResult>;
6
+ /**
7
+ * A collection of values returned by getEventRules.
8
+ */
9
+ export interface GetEventRulesResult {
10
+ /**
11
+ * Uniquely identifies the data source.
12
+ */
13
+ readonly id: string;
14
+ /**
15
+ * Set of Resource Identifiers.
16
+ */
17
+ readonly ids: string[];
18
+ }
19
+ /**
20
+ * Plural Data Source schema for Volcengine::CloudMonitor::EventRule
21
+ */
22
+ export declare function getEventRulesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEventRulesResult>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getEventRulesOutput = exports.getEventRules = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Plural Data Source schema for Volcengine::CloudMonitor::EventRule
10
+ */
11
+ function getEventRules(opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("volcenginecc:cloudmonitor/getEventRules:getEventRules", {}, opts);
14
+ }
15
+ exports.getEventRules = getEventRules;
16
+ /**
17
+ * Plural Data Source schema for Volcengine::CloudMonitor::EventRule
18
+ */
19
+ function getEventRulesOutput(opts) {
20
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
21
+ return pulumi.runtime.invokeOutput("volcenginecc:cloudmonitor/getEventRules:getEventRules", {}, opts);
22
+ }
23
+ exports.getEventRulesOutput = getEventRulesOutput;
24
+ //# sourceMappingURL=getEventRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEventRules.js","sourceRoot":"","sources":["../../cloudmonitor/getEventRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,aAAa,CAAC,IAA2B;IACrD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE,EACrF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,sCAIC;AAeD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAiC;IACjE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uDAAuD,EAAE,EAC3F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,kDAIC"}
@@ -34,7 +34,7 @@ export interface GetRuleResult {
34
34
  */
35
35
  readonly conditions: outputs.cloudmonitor.GetRuleCondition[];
36
36
  /**
37
- * Alert notification group ID bound to the alert policy.
37
+ * When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
38
38
  */
39
39
  readonly contactGroupIds: string[];
40
40
  /**
@@ -42,19 +42,19 @@ export interface GetRuleResult {
42
42
  */
43
43
  readonly createdAt: string;
44
44
  /**
45
- * Alert policy description.
45
+ * Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
46
46
  */
47
47
  readonly description: string;
48
48
  /**
49
- * Dimension configuration.
49
+ * Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
50
50
  */
51
51
  readonly dimensionConditions: outputs.cloudmonitor.GetRuleDimensionConditions;
52
52
  /**
53
- * Policy expiration time, in HH:MM format.
53
+ * End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
54
54
  */
55
55
  readonly effectEndAt: string;
56
56
  /**
57
- * Policy start time, in HH:MM format.
57
+ * Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
58
58
  */
59
59
  readonly effectStartAt: string;
60
60
  /**
@@ -62,7 +62,7 @@ export interface GetRuleResult {
62
62
  */
63
63
  readonly enableState: string;
64
64
  /**
65
- * Duration required to trigger an alert, in minutes.
65
+ * Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
66
66
  */
67
67
  readonly evaluationCount: number;
68
68
  /**
@@ -82,7 +82,7 @@ export interface GetRuleResult {
82
82
  */
83
83
  readonly multipleConditions: boolean;
84
84
  /**
85
- * Cloud product associated with the monitoring metric. For details, see Namespace for each product in Cloud Product Monitoring Metrics.
85
+ * The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
86
86
  */
87
87
  readonly namespace: string;
88
88
  /**
@@ -90,7 +90,7 @@ export interface GetRuleResult {
90
90
  */
91
91
  readonly noData: outputs.cloudmonitor.GetRuleNoData;
92
92
  /**
93
- * Notification policy ID.
93
+ * Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
94
94
  */
95
95
  readonly notificationId: string;
96
96
  /**
@@ -102,7 +102,7 @@ export interface GetRuleResult {
102
102
  */
103
103
  readonly originalDimensions: outputs.cloudmonitor.GetRuleOriginalDimensions;
104
104
  /**
105
- * Project to which the alert policy belongs.
105
+ * Project name to which the alert policy belongs. If not specified, it defaults to the default project.
106
106
  */
107
107
  readonly projectName: string;
108
108
  /**
@@ -110,7 +110,7 @@ export interface GetRuleResult {
110
110
  */
111
111
  readonly recoveryNotify: outputs.cloudmonitor.GetRuleRecoveryNotify;
112
112
  /**
113
- * Availability zone ID of the cloud product.
113
+ * Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
114
114
  */
115
115
  readonly regions: string[];
116
116
  /**
@@ -122,7 +122,7 @@ export interface GetRuleResult {
122
122
  */
123
123
  readonly ruleId: string;
124
124
  /**
125
- * Alert policy name.
125
+ * Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
126
126
  */
127
127
  readonly ruleName: string;
128
128
  /**
@@ -1,12 +1,21 @@
1
1
  export { ContactGroupArgs, ContactGroupState } from "./contactGroup";
2
2
  export type ContactGroup = import("./contactGroup").ContactGroup;
3
3
  export declare const ContactGroup: typeof import("./contactGroup").ContactGroup;
4
+ export { EventRuleArgs, EventRuleState } from "./eventRule";
5
+ export type EventRule = import("./eventRule").EventRule;
6
+ export declare const EventRule: typeof import("./eventRule").EventRule;
4
7
  export { GetContactGroupArgs, GetContactGroupResult, GetContactGroupOutputArgs } from "./getContactGroup";
5
8
  export declare const getContactGroup: typeof import("./getContactGroup").getContactGroup;
6
9
  export declare const getContactGroupOutput: typeof import("./getContactGroup").getContactGroupOutput;
7
10
  export { GetContactGroupsResult } from "./getContactGroups";
8
11
  export declare const getContactGroups: typeof import("./getContactGroups").getContactGroups;
9
12
  export declare const getContactGroupsOutput: typeof import("./getContactGroups").getContactGroupsOutput;
13
+ export { GetEventRuleArgs, GetEventRuleResult, GetEventRuleOutputArgs } from "./getEventRule";
14
+ export declare const getEventRule: typeof import("./getEventRule").getEventRule;
15
+ export declare const getEventRuleOutput: typeof import("./getEventRule").getEventRuleOutput;
16
+ export { GetEventRulesResult } from "./getEventRules";
17
+ export declare const getEventRules: typeof import("./getEventRules").getEventRules;
18
+ export declare const getEventRulesOutput: typeof import("./getEventRules").getEventRulesOutput;
10
19
  export { GetRuleArgs, GetRuleResult, GetRuleOutputArgs } from "./getRule";
11
20
  export declare const getRule: typeof import("./getRule").getRule;
12
21
  export declare const getRuleOutput: typeof import("./getRule").getRuleOutput;
@@ -2,17 +2,25 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Rule = exports.getRulesOutput = exports.getRules = exports.getRuleOutput = exports.getRule = exports.getContactGroupsOutput = exports.getContactGroups = exports.getContactGroupOutput = exports.getContactGroup = exports.ContactGroup = void 0;
5
+ exports.Rule = exports.getRulesOutput = exports.getRules = exports.getRuleOutput = exports.getRule = exports.getEventRulesOutput = exports.getEventRules = exports.getEventRuleOutput = exports.getEventRule = exports.getContactGroupsOutput = exports.getContactGroups = exports.getContactGroupOutput = exports.getContactGroup = exports.EventRule = exports.ContactGroup = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.ContactGroup = null;
9
9
  utilities.lazyLoad(exports, ["ContactGroup"], () => require("./contactGroup"));
10
+ exports.EventRule = null;
11
+ utilities.lazyLoad(exports, ["EventRule"], () => require("./eventRule"));
10
12
  exports.getContactGroup = null;
11
13
  exports.getContactGroupOutput = null;
12
14
  utilities.lazyLoad(exports, ["getContactGroup", "getContactGroupOutput"], () => require("./getContactGroup"));
13
15
  exports.getContactGroups = null;
14
16
  exports.getContactGroupsOutput = null;
15
17
  utilities.lazyLoad(exports, ["getContactGroups", "getContactGroupsOutput"], () => require("./getContactGroups"));
18
+ exports.getEventRule = null;
19
+ exports.getEventRuleOutput = null;
20
+ utilities.lazyLoad(exports, ["getEventRule", "getEventRuleOutput"], () => require("./getEventRule"));
21
+ exports.getEventRules = null;
22
+ exports.getEventRulesOutput = null;
23
+ utilities.lazyLoad(exports, ["getEventRules", "getEventRulesOutput"], () => require("./getEventRules"));
16
24
  exports.getRule = null;
17
25
  exports.getRuleOutput = null;
18
26
  utilities.lazyLoad(exports, ["getRule", "getRuleOutput"], () => require("./getRule"));
@@ -27,6 +35,8 @@ const _module = {
27
35
  switch (type) {
28
36
  case "volcenginecc:cloudmonitor/contactGroup:ContactGroup":
29
37
  return new exports.ContactGroup(name, undefined, { urn });
38
+ case "volcenginecc:cloudmonitor/eventRule:EventRule":
39
+ return new exports.EventRule(name, undefined, { urn });
30
40
  case "volcenginecc:cloudmonitor/rule:Rule":
31
41
  return new exports.Rule(name, undefined, { urn });
32
42
  default:
@@ -35,5 +45,6 @@ const _module = {
35
45
  },
36
46
  };
37
47
  pulumi.runtime.registerResourceModule("volcenginecc", "cloudmonitor/contactGroup", _module);
48
+ pulumi.runtime.registerResourceModule("volcenginecc", "cloudmonitor/eventRule", _module);
38
49
  pulumi.runtime.registerResourceModule("volcenginecc", "cloudmonitor/rule", _module);
39
50
  //# sourceMappingURL=index.js.map