@volcengine/pulumi 0.0.42 → 0.0.44-alpha.1769951655

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 (394) hide show
  1. package/alb/accessLog.d.ts +79 -0
  2. package/alb/accessLog.js +76 -0
  3. package/alb/accessLog.js.map +1 -0
  4. package/alb/acl.d.ts +28 -0
  5. package/alb/acl.js +6 -0
  6. package/alb/acl.js.map +1 -1
  7. package/alb/acls.d.ts +13 -0
  8. package/alb/acls.js +1 -0
  9. package/alb/acls.js.map +1 -1
  10. package/alb/alb.d.ts +151 -4
  11. package/alb/alb.js +51 -4
  12. package/alb/alb.js.map +1 -1
  13. package/alb/albs.d.ts +24 -0
  14. package/alb/albs.js +2 -0
  15. package/alb/albs.js.map +1 -1
  16. package/alb/allCertificates.d.ts +151 -0
  17. package/alb/allCertificates.js +71 -0
  18. package/alb/allCertificates.js.map +1 -0
  19. package/alb/cacertificate.d.ts +8 -0
  20. package/alb/cacertificate.js +2 -0
  21. package/alb/cacertificate.js.map +1 -1
  22. package/alb/certificate.d.ts +26 -0
  23. package/alb/certificate.js +8 -0
  24. package/alb/certificate.js.map +1 -1
  25. package/alb/certificates.d.ts +33 -0
  26. package/alb/certificates.js +10 -0
  27. package/alb/certificates.js.map +1 -1
  28. package/alb/customizedCfg.d.ts +14 -0
  29. package/alb/customizedCfg.js +2 -0
  30. package/alb/customizedCfg.js.map +1 -1
  31. package/alb/customizedCfgs.d.ts +13 -0
  32. package/alb/customizedCfgs.js +1 -0
  33. package/alb/customizedCfgs.js.map +1 -1
  34. package/alb/getAcls.d.ts +13 -0
  35. package/alb/getAcls.js +1 -0
  36. package/alb/getAcls.js.map +1 -1
  37. package/alb/getAlbs.d.ts +24 -0
  38. package/alb/getAlbs.js +2 -0
  39. package/alb/getAlbs.js.map +1 -1
  40. package/alb/getAllCertificates.d.ts +149 -0
  41. package/alb/getAllCertificates.js +68 -0
  42. package/alb/getAllCertificates.js.map +1 -0
  43. package/alb/getCertificates.d.ts +33 -0
  44. package/alb/getCertificates.js +10 -0
  45. package/alb/getCertificates.js.map +1 -1
  46. package/alb/getCustomizedCfgs.d.ts +13 -0
  47. package/alb/getCustomizedCfgs.js +1 -0
  48. package/alb/getCustomizedCfgs.js.map +1 -1
  49. package/alb/getHealthCheckTemplates.d.ts +33 -0
  50. package/alb/getHealthCheckTemplates.js +10 -0
  51. package/alb/getHealthCheckTemplates.js.map +1 -1
  52. package/alb/getListenerHealths.d.ts +103 -0
  53. package/alb/getListenerHealths.js +58 -0
  54. package/alb/getListenerHealths.js.map +1 -0
  55. package/alb/getListeners.d.ts +25 -0
  56. package/alb/getListeners.js +2 -0
  57. package/alb/getListeners.js.map +1 -1
  58. package/alb/getServerGroupServers.d.ts +20 -0
  59. package/alb/getServerGroupServers.js +4 -0
  60. package/alb/getServerGroupServers.js.map +1 -1
  61. package/alb/getServerGroups.d.ts +25 -0
  62. package/alb/getServerGroups.js +2 -0
  63. package/alb/getServerGroups.js.map +1 -1
  64. package/alb/healthCheckTemplate.d.ts +45 -3
  65. package/alb/healthCheckTemplate.js +10 -0
  66. package/alb/healthCheckTemplate.js.map +1 -1
  67. package/alb/healthCheckTemplates.d.ts +33 -0
  68. package/alb/healthCheckTemplates.js +10 -0
  69. package/alb/healthCheckTemplates.js.map +1 -1
  70. package/alb/healthLog.d.ts +92 -0
  71. package/alb/healthLog.js +82 -0
  72. package/alb/healthLog.js.map +1 -0
  73. package/alb/index.d.ts +24 -0
  74. package/alb/index.js +34 -2
  75. package/alb/index.js.map +1 -1
  76. package/alb/listener.d.ts +101 -3
  77. package/alb/listener.js +26 -0
  78. package/alb/listener.js.map +1 -1
  79. package/alb/listenerDomainExtension.d.ts +41 -5
  80. package/alb/listenerDomainExtension.js +6 -3
  81. package/alb/listenerDomainExtension.js.map +1 -1
  82. package/alb/listenerHealths.d.ts +105 -0
  83. package/alb/listenerHealths.js +61 -0
  84. package/alb/listenerHealths.js.map +1 -0
  85. package/alb/listeners.d.ts +25 -0
  86. package/alb/listeners.js +2 -0
  87. package/alb/listeners.js.map +1 -1
  88. package/alb/replaceCertificate.d.ts +226 -0
  89. package/alb/replaceCertificate.js +128 -0
  90. package/alb/replaceCertificate.js.map +1 -0
  91. package/alb/rule.d.ts +107 -0
  92. package/alb/rule.js +47 -0
  93. package/alb/rule.js.map +1 -1
  94. package/alb/serverGroup.d.ts +60 -0
  95. package/alb/serverGroup.js +20 -0
  96. package/alb/serverGroup.js.map +1 -1
  97. package/alb/serverGroupServer.d.ts +18 -6
  98. package/alb/serverGroupServer.js +2 -0
  99. package/alb/serverGroupServer.js.map +1 -1
  100. package/alb/serverGroupServers.d.ts +20 -0
  101. package/alb/serverGroupServers.js +4 -0
  102. package/alb/serverGroupServers.js.map +1 -1
  103. package/alb/serverGroups.d.ts +25 -0
  104. package/alb/serverGroups.js +2 -0
  105. package/alb/serverGroups.js.map +1 -1
  106. package/alb/tlsAccessLog.d.ts +92 -0
  107. package/alb/tlsAccessLog.js +82 -0
  108. package/alb/tlsAccessLog.js.map +1 -0
  109. package/clb/accessLog.d.ts +122 -0
  110. package/clb/accessLog.js +86 -0
  111. package/clb/accessLog.js.map +1 -0
  112. package/clb/acl.d.ts +16 -0
  113. package/clb/acl.js +6 -0
  114. package/clb/acl.js.map +1 -1
  115. package/clb/acls.d.ts +21 -0
  116. package/clb/acls.js +9 -0
  117. package/clb/acls.js.map +1 -1
  118. package/clb/clb.d.ts +78 -2
  119. package/clb/clb.js +13 -1
  120. package/clb/clb.js.map +1 -1
  121. package/clb/clbs.d.ts +79 -1
  122. package/clb/clbs.js +7 -0
  123. package/clb/clbs.js.map +1 -1
  124. package/clb/getAcls.d.ts +21 -0
  125. package/clb/getAcls.js +9 -0
  126. package/clb/getAcls.js.map +1 -1
  127. package/clb/getClbs.d.ts +79 -1
  128. package/clb/getClbs.js +7 -0
  129. package/clb/getClbs.js.map +1 -1
  130. package/clb/getHealthCheckLogProjects.d.ts +62 -0
  131. package/clb/getHealthCheckLogProjects.js +42 -0
  132. package/clb/getHealthCheckLogProjects.js.map +1 -0
  133. package/clb/getHealthCheckLogTopics.d.ts +75 -0
  134. package/clb/getHealthCheckLogTopics.js +46 -0
  135. package/clb/getHealthCheckLogTopics.js.map +1 -0
  136. package/clb/getListenerHealths.d.ts +84 -0
  137. package/clb/getListenerHealths.js +47 -0
  138. package/clb/getListenerHealths.js.map +1 -0
  139. package/clb/getListeners.d.ts +28 -0
  140. package/clb/getListeners.js +2 -0
  141. package/clb/getListeners.js.map +1 -1
  142. package/clb/getRules.d.ts +13 -0
  143. package/clb/getRules.js +1 -0
  144. package/clb/getRules.js.map +1 -1
  145. package/clb/getServerGroups.d.ts +28 -0
  146. package/clb/getServerGroups.js +2 -0
  147. package/clb/getServerGroups.js.map +1 -1
  148. package/clb/healthCheckLogProject.d.ts +63 -0
  149. package/clb/healthCheckLogProject.js +68 -0
  150. package/clb/healthCheckLogProject.js.map +1 -0
  151. package/clb/healthCheckLogProjects.d.ts +64 -0
  152. package/clb/healthCheckLogProjects.js +45 -0
  153. package/clb/healthCheckLogProjects.js.map +1 -0
  154. package/clb/healthCheckLogTopic.d.ts +86 -0
  155. package/clb/healthCheckLogTopic.js +83 -0
  156. package/clb/healthCheckLogTopic.js.map +1 -0
  157. package/clb/healthCheckLogTopics.d.ts +77 -0
  158. package/clb/healthCheckLogTopics.js +49 -0
  159. package/clb/healthCheckLogTopics.js.map +1 -0
  160. package/clb/index.d.ts +27 -0
  161. package/clb/index.js +35 -1
  162. package/clb/index.js.map +1 -1
  163. package/clb/listener.d.ts +254 -3
  164. package/clb/listener.js +71 -0
  165. package/clb/listener.js.map +1 -1
  166. package/clb/listenerHealths.d.ts +86 -0
  167. package/clb/listenerHealths.js +50 -0
  168. package/clb/listenerHealths.js.map +1 -0
  169. package/clb/listeners.d.ts +28 -0
  170. package/clb/listeners.js +2 -0
  171. package/clb/listeners.js.map +1 -1
  172. package/clb/rule.d.ts +59 -4
  173. package/clb/rule.js +23 -3
  174. package/clb/rule.js.map +1 -1
  175. package/clb/rules.d.ts +13 -0
  176. package/clb/rules.js +1 -0
  177. package/clb/rules.js.map +1 -1
  178. package/clb/serverGroup.d.ts +43 -0
  179. package/clb/serverGroup.js +11 -0
  180. package/clb/serverGroup.js.map +1 -1
  181. package/clb/serverGroupServer.d.ts +30 -6
  182. package/clb/serverGroupServer.js +24 -0
  183. package/clb/serverGroupServer.js.map +1 -1
  184. package/clb/serverGroups.d.ts +28 -0
  185. package/clb/serverGroups.js +2 -0
  186. package/clb/serverGroups.js.map +1 -1
  187. package/package.json +1 -1
  188. package/redis/getPitrTimeWindows.d.ts +0 -50
  189. package/redis/getPitrTimeWindows.js +0 -32
  190. package/redis/getPitrTimeWindows.js.map +1 -1
  191. package/redis/pitrTimeWindows.d.ts +0 -50
  192. package/redis/pitrTimeWindows.js +0 -32
  193. package/redis/pitrTimeWindows.js.map +1 -1
  194. package/tls/account.d.ts +71 -0
  195. package/tls/account.js +70 -0
  196. package/tls/account.js.map +1 -0
  197. package/tls/accounts.d.ts +64 -0
  198. package/tls/accounts.js +45 -0
  199. package/tls/accounts.js.map +1 -0
  200. package/tls/alarm.d.ts +74 -14
  201. package/tls/alarm.js +33 -13
  202. package/tls/alarm.js.map +1 -1
  203. package/tls/alarmContentTemplate.d.ts +219 -0
  204. package/tls/alarmContentTemplate.js +135 -0
  205. package/tls/alarmContentTemplate.js.map +1 -0
  206. package/tls/alarmContentTemplates.d.ts +115 -0
  207. package/tls/alarmContentTemplates.js +50 -0
  208. package/tls/alarmContentTemplates.js.map +1 -0
  209. package/tls/alarmNotifyGroup.d.ts +16 -27
  210. package/tls/alarmNotifyGroup.js +2 -29
  211. package/tls/alarmNotifyGroup.js.map +1 -1
  212. package/tls/alarmWebhookIntegration.d.ts +155 -0
  213. package/tls/alarmWebhookIntegration.js +103 -0
  214. package/tls/alarmWebhookIntegration.js.map +1 -0
  215. package/tls/alarmWebhookIntegrations.d.ts +100 -0
  216. package/tls/alarmWebhookIntegrations.js +48 -0
  217. package/tls/alarmWebhookIntegrations.js.map +1 -0
  218. package/tls/alarms.d.ts +7 -11
  219. package/tls/alarms.js +3 -6
  220. package/tls/alarms.js.map +1 -1
  221. package/tls/consumerGroup.d.ts +3 -3
  222. package/tls/consumerGroup.js +3 -3
  223. package/tls/consumerGroups.d.ts +38 -2
  224. package/tls/consumerGroups.js +38 -2
  225. package/tls/consumerGroups.js.map +1 -1
  226. package/tls/describeTraces.d.ts +91 -0
  227. package/tls/describeTraces.js +52 -0
  228. package/tls/describeTraces.js.map +1 -0
  229. package/tls/downloadTask.d.ts +239 -0
  230. package/tls/downloadTask.js +125 -0
  231. package/tls/downloadTask.js.map +1 -0
  232. package/tls/downloadTasks.d.ts +105 -0
  233. package/tls/downloadTasks.js +56 -0
  234. package/tls/downloadTasks.js.map +1 -0
  235. package/tls/downloadUrls.d.ts +95 -0
  236. package/tls/downloadUrls.js +80 -0
  237. package/tls/downloadUrls.js.map +1 -0
  238. package/tls/etlTask.d.ts +4 -4
  239. package/tls/etlTask.js +4 -4
  240. package/tls/getAccounts.d.ts +62 -0
  241. package/tls/getAccounts.js +42 -0
  242. package/tls/getAccounts.js.map +1 -0
  243. package/tls/getAlarmContentTemplates.d.ts +113 -0
  244. package/tls/getAlarmContentTemplates.js +47 -0
  245. package/tls/getAlarmContentTemplates.js.map +1 -0
  246. package/tls/getAlarmWebhookIntegrations.d.ts +98 -0
  247. package/tls/getAlarmWebhookIntegrations.js +45 -0
  248. package/tls/getAlarmWebhookIntegrations.js.map +1 -0
  249. package/tls/getAlarms.d.ts +7 -11
  250. package/tls/getAlarms.js +3 -6
  251. package/tls/getAlarms.js.map +1 -1
  252. package/tls/getConsumerGroups.d.ts +38 -2
  253. package/tls/getConsumerGroups.js +38 -2
  254. package/tls/getConsumerGroups.js.map +1 -1
  255. package/tls/getDescribeTraces.d.ts +89 -0
  256. package/tls/getDescribeTraces.js +49 -0
  257. package/tls/getDescribeTraces.js.map +1 -0
  258. package/tls/getDownloadTasks.d.ts +103 -0
  259. package/tls/getDownloadTasks.js +53 -0
  260. package/tls/getDownloadTasks.js.map +1 -0
  261. package/tls/getDownloadUrls.d.ts +93 -0
  262. package/tls/getDownloadUrls.js +77 -0
  263. package/tls/getDownloadUrls.js.map +1 -0
  264. package/tls/getHostGroupRules.d.ts +75 -0
  265. package/tls/getHostGroupRules.js +46 -0
  266. package/tls/getHostGroupRules.js.map +1 -0
  267. package/tls/getHostGroups.d.ts +11 -8
  268. package/tls/getHostGroups.js +3 -8
  269. package/tls/getHostGroups.js.map +1 -1
  270. package/tls/getHosts.d.ts +2 -2
  271. package/tls/getHosts.js +2 -2
  272. package/tls/getIndexes.d.ts +2 -2
  273. package/tls/getIndexes.js +2 -2
  274. package/tls/getLogContexts.d.ts +105 -0
  275. package/tls/getLogContexts.js +32 -0
  276. package/tls/getLogContexts.js.map +1 -0
  277. package/tls/getLogHistograms.d.ts +120 -0
  278. package/tls/getLogHistograms.js +57 -0
  279. package/tls/getLogHistograms.js.map +1 -0
  280. package/tls/getLogSearches.d.ts +164 -0
  281. package/tls/getLogSearches.js +62 -0
  282. package/tls/getLogSearches.js.map +1 -0
  283. package/tls/getRuleAppliers.d.ts +251 -17
  284. package/tls/getRuleAppliers.js +239 -5
  285. package/tls/getRuleAppliers.js.map +1 -1
  286. package/tls/getRuleBoundHostGroups.d.ts +75 -0
  287. package/tls/getRuleBoundHostGroups.js +46 -0
  288. package/tls/getRuleBoundHostGroups.js.map +1 -0
  289. package/tls/getRules.d.ts +54 -7
  290. package/tls/getRules.js +15 -2
  291. package/tls/getRules.js.map +1 -1
  292. package/tls/getSearchTraces.d.ts +85 -0
  293. package/tls/getSearchTraces.js +47 -0
  294. package/tls/getSearchTraces.js.map +1 -0
  295. package/tls/getShards.d.ts +2 -2
  296. package/tls/getShards.js +2 -2
  297. package/tls/getTagResources.d.ts +167 -0
  298. package/tls/getTagResources.js +106 -0
  299. package/tls/getTagResources.js.map +1 -0
  300. package/tls/getTags.d.ts +115 -0
  301. package/tls/getTags.js +54 -0
  302. package/tls/getTags.js.map +1 -0
  303. package/tls/getTopics.d.ts +4 -13
  304. package/tls/getTopics.js +4 -5
  305. package/tls/getTopics.js.map +1 -1
  306. package/tls/getTraceInstances.d.ts +154 -0
  307. package/tls/getTraceInstances.js +63 -0
  308. package/tls/getTraceInstances.js.map +1 -0
  309. package/tls/host.d.ts +23 -10
  310. package/tls/host.js +21 -11
  311. package/tls/host.js.map +1 -1
  312. package/tls/hostGroup.d.ts +20 -27
  313. package/tls/hostGroup.js +20 -9
  314. package/tls/hostGroup.js.map +1 -1
  315. package/tls/hostGroupRules.d.ts +77 -0
  316. package/tls/hostGroupRules.js +49 -0
  317. package/tls/hostGroupRules.js.map +1 -0
  318. package/tls/hostGroups.d.ts +11 -8
  319. package/tls/hostGroups.js +3 -8
  320. package/tls/hostGroups.js.map +1 -1
  321. package/tls/hosts.d.ts +2 -2
  322. package/tls/hosts.js +2 -2
  323. package/tls/index.d.ts +117 -0
  324. package/tls/index.js +138 -2
  325. package/tls/index.js.map +1 -1
  326. package/tls/index_.d.ts +55 -32
  327. package/tls/index_.js +35 -32
  328. package/tls/index_.js.map +1 -1
  329. package/tls/indexes.d.ts +2 -2
  330. package/tls/indexes.js +2 -2
  331. package/tls/logContexts.d.ts +107 -0
  332. package/tls/logContexts.js +35 -0
  333. package/tls/logContexts.js.map +1 -0
  334. package/tls/logHistograms.d.ts +122 -0
  335. package/tls/logHistograms.js +60 -0
  336. package/tls/logHistograms.js.map +1 -0
  337. package/tls/logSearches.d.ts +166 -0
  338. package/tls/logSearches.js +65 -0
  339. package/tls/logSearches.js.map +1 -0
  340. package/tls/project.d.ts +24 -29
  341. package/tls/project.js +17 -11
  342. package/tls/project.js.map +1 -1
  343. package/tls/rule.d.ts +79 -36
  344. package/tls/rule.js +79 -36
  345. package/tls/rule.js.map +1 -1
  346. package/tls/ruleAppliers.d.ts +251 -17
  347. package/tls/ruleAppliers.js +239 -5
  348. package/tls/ruleAppliers.js.map +1 -1
  349. package/tls/ruleBoundHostGroup.d.ts +82 -0
  350. package/tls/ruleBoundHostGroup.js +79 -0
  351. package/tls/ruleBoundHostGroup.js.map +1 -0
  352. package/tls/ruleBoundHostGroups.d.ts +77 -0
  353. package/tls/ruleBoundHostGroups.js +49 -0
  354. package/tls/ruleBoundHostGroups.js.map +1 -0
  355. package/tls/rules.d.ts +54 -7
  356. package/tls/rules.js +15 -2
  357. package/tls/rules.js.map +1 -1
  358. package/tls/searchTraces.d.ts +87 -0
  359. package/tls/searchTraces.js +50 -0
  360. package/tls/searchTraces.js.map +1 -0
  361. package/tls/shard.d.ts +101 -0
  362. package/tls/shard.js +83 -0
  363. package/tls/shard.js.map +1 -0
  364. package/tls/shards.d.ts +2 -2
  365. package/tls/shards.js +2 -2
  366. package/tls/shipper.d.ts +17 -6
  367. package/tls/shipper.js +7 -6
  368. package/tls/shipper.js.map +1 -1
  369. package/tls/tag.d.ts +112 -0
  370. package/tls/tag.js +100 -0
  371. package/tls/tag.js.map +1 -0
  372. package/tls/tagResource.d.ts +111 -0
  373. package/tls/tagResource.js +99 -0
  374. package/tls/tagResource.js.map +1 -0
  375. package/tls/tagResources.d.ts +169 -0
  376. package/tls/tagResources.js +109 -0
  377. package/tls/tagResources.js.map +1 -0
  378. package/tls/tags.d.ts +117 -0
  379. package/tls/tags.js +57 -0
  380. package/tls/tags.js.map +1 -0
  381. package/tls/topic.d.ts +84 -3
  382. package/tls/topic.js +24 -3
  383. package/tls/topic.js.map +1 -1
  384. package/tls/topics.d.ts +4 -13
  385. package/tls/topics.js +4 -5
  386. package/tls/topics.js.map +1 -1
  387. package/tls/traceInstance.d.ts +122 -0
  388. package/tls/traceInstance.js +97 -0
  389. package/tls/traceInstance.js.map +1 -0
  390. package/tls/traceInstances.d.ts +156 -0
  391. package/tls/traceInstances.js +66 -0
  392. package/tls/traceInstances.js.map +1 -0
  393. package/types/input.d.ts +4211 -2621
  394. package/types/output.d.ts +6032 -884
@@ -0,0 +1,219 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Provides a resource to manage tls alarm content template
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as volcengine from "@volcengine/pulumi";
11
+ *
12
+ * const foo = new volcengine.tls.AlarmContentTemplate("foo", {
13
+ * alarmContentTemplateName: "test-alarm-content-template",
14
+ * dingTalks: [{
15
+ * content: `修改-尊敬的用户,您好!
16
+ * 您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
17
+ * 告警策略:{{Alarm}}
18
+ * 告警日志主题:{{AlarmTopicName}}
19
+ * 触发时间:{{StartTime}}
20
+ * 触发条件:{{Condition}}
21
+ * 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
22
+ * 通知内容:{{NotifyMsg|escapejs}}
23
+ * 日志检索详情:[查看详情]({{QueryUrl}})
24
+ * 告警详情:[查看详情]({{SignInUrl}})
25
+ *
26
+ * 感谢对火山引擎的支持
27
+ * `,
28
+ * locale: "zh-CN",
29
+ * title: "修改-告警通知",
30
+ * }],
31
+ * emails: [{
32
+ * content: "修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>",
33
+ * locale: "zh-CN",
34
+ * subject: "修改-告警通知",
35
+ * }],
36
+ * larks: [{
37
+ * content: `修改-尊敬的用户,您好!
38
+ * 您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
39
+ * 告警策略:{{Alarm}}
40
+ * 告警日志主题:{{AlarmTopicName}}
41
+ * 触发时间:{{StartTime}}
42
+ * 触发条件:{{Condition}}
43
+ * 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
44
+ * 通知内容:{{NotifyMsg|escapejs}}
45
+ * 日志检索详情:[查看详情]({{QueryUrl}})
46
+ * 告警详情:[查看详情]({{SignInUrl}})
47
+ *
48
+ * 感谢对火山引擎的支持
49
+ * `,
50
+ * locale: "zh-CN",
51
+ * title: "修改-告警通知",
52
+ * }],
53
+ * needValidContent: true,
54
+ * sms: [{
55
+ * content: "修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}",
56
+ * locale: "zh-CN",
57
+ * }],
58
+ * });
59
+ * ```
60
+ *
61
+ * ## Import
62
+ *
63
+ * tls alarm content template can be imported using the alarm_content_template_id, e.g.
64
+ *
65
+ * ```sh
66
+ * $ pulumi import volcengine:tls/alarmContentTemplate:AlarmContentTemplate default alarm-content-template-123456
67
+ * ```
68
+ */
69
+ export declare class AlarmContentTemplate extends pulumi.CustomResource {
70
+ /**
71
+ * Get an existing AlarmContentTemplate resource's state with the given name, ID, and optional extra
72
+ * properties used to qualify the lookup.
73
+ *
74
+ * @param name The _unique_ name of the resulting resource.
75
+ * @param id The _unique_ provider ID of the resource to lookup.
76
+ * @param state Any extra arguments used during the lookup.
77
+ * @param opts Optional settings to control the behavior of the CustomResource.
78
+ */
79
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlarmContentTemplateState, opts?: pulumi.CustomResourceOptions): AlarmContentTemplate;
80
+ /**
81
+ * Returns true if the given object is an instance of AlarmContentTemplate. This is designed to work even
82
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
83
+ */
84
+ static isInstance(obj: any): obj is AlarmContentTemplate;
85
+ /**
86
+ * The ID of the alarm content template.
87
+ */
88
+ readonly alarmContentTemplateId: pulumi.Output<string>;
89
+ /**
90
+ * The name of the alarm content template.
91
+ */
92
+ readonly alarmContentTemplateName: pulumi.Output<string>;
93
+ /**
94
+ * The dingTalk content of the alarm content template.
95
+ */
96
+ readonly dingTalks: pulumi.Output<outputs.tls.AlarmContentTemplateDingTalk[] | undefined>;
97
+ /**
98
+ * The email content of the alarm content template.
99
+ */
100
+ readonly emails: pulumi.Output<outputs.tls.AlarmContentTemplateEmail[] | undefined>;
101
+ /**
102
+ * The lark content of the alarm content template.
103
+ */
104
+ readonly larks: pulumi.Output<outputs.tls.AlarmContentTemplateLark[] | undefined>;
105
+ /**
106
+ * Whether to validate the content template.
107
+ */
108
+ readonly needValidContent: pulumi.Output<boolean | undefined>;
109
+ /**
110
+ * The sms content of the alarm content template.
111
+ */
112
+ readonly sms: pulumi.Output<outputs.tls.AlarmContentTemplateSm[] | undefined>;
113
+ /**
114
+ * The vms content of the alarm content template.
115
+ */
116
+ readonly vms: pulumi.Output<outputs.tls.AlarmContentTemplateVm[] | undefined>;
117
+ /**
118
+ * The webhook content of the alarm content template.
119
+ */
120
+ readonly webhooks: pulumi.Output<outputs.tls.AlarmContentTemplateWebhook[] | undefined>;
121
+ /**
122
+ * The wechat content of the alarm content template.
123
+ */
124
+ readonly wechats: pulumi.Output<outputs.tls.AlarmContentTemplateWechat[] | undefined>;
125
+ /**
126
+ * Create a AlarmContentTemplate resource with the given unique name, arguments, and options.
127
+ *
128
+ * @param name The _unique_ name of the resource.
129
+ * @param args The arguments to use to populate this resource's properties.
130
+ * @param opts A bag of options that control this resource's behavior.
131
+ */
132
+ constructor(name: string, args: AlarmContentTemplateArgs, opts?: pulumi.CustomResourceOptions);
133
+ }
134
+ /**
135
+ * Input properties used for looking up and filtering AlarmContentTemplate resources.
136
+ */
137
+ export interface AlarmContentTemplateState {
138
+ /**
139
+ * The ID of the alarm content template.
140
+ */
141
+ alarmContentTemplateId?: pulumi.Input<string>;
142
+ /**
143
+ * The name of the alarm content template.
144
+ */
145
+ alarmContentTemplateName?: pulumi.Input<string>;
146
+ /**
147
+ * The dingTalk content of the alarm content template.
148
+ */
149
+ dingTalks?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateDingTalk>[]>;
150
+ /**
151
+ * The email content of the alarm content template.
152
+ */
153
+ emails?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateEmail>[]>;
154
+ /**
155
+ * The lark content of the alarm content template.
156
+ */
157
+ larks?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateLark>[]>;
158
+ /**
159
+ * Whether to validate the content template.
160
+ */
161
+ needValidContent?: pulumi.Input<boolean>;
162
+ /**
163
+ * The sms content of the alarm content template.
164
+ */
165
+ sms?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateSm>[]>;
166
+ /**
167
+ * The vms content of the alarm content template.
168
+ */
169
+ vms?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateVm>[]>;
170
+ /**
171
+ * The webhook content of the alarm content template.
172
+ */
173
+ webhooks?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateWebhook>[]>;
174
+ /**
175
+ * The wechat content of the alarm content template.
176
+ */
177
+ wechats?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateWechat>[]>;
178
+ }
179
+ /**
180
+ * The set of arguments for constructing a AlarmContentTemplate resource.
181
+ */
182
+ export interface AlarmContentTemplateArgs {
183
+ /**
184
+ * The name of the alarm content template.
185
+ */
186
+ alarmContentTemplateName: pulumi.Input<string>;
187
+ /**
188
+ * The dingTalk content of the alarm content template.
189
+ */
190
+ dingTalks?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateDingTalk>[]>;
191
+ /**
192
+ * The email content of the alarm content template.
193
+ */
194
+ emails?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateEmail>[]>;
195
+ /**
196
+ * The lark content of the alarm content template.
197
+ */
198
+ larks?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateLark>[]>;
199
+ /**
200
+ * Whether to validate the content template.
201
+ */
202
+ needValidContent?: pulumi.Input<boolean>;
203
+ /**
204
+ * The sms content of the alarm content template.
205
+ */
206
+ sms?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateSm>[]>;
207
+ /**
208
+ * The vms content of the alarm content template.
209
+ */
210
+ vms?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateVm>[]>;
211
+ /**
212
+ * The webhook content of the alarm content template.
213
+ */
214
+ webhooks?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateWebhook>[]>;
215
+ /**
216
+ * The wechat content of the alarm content template.
217
+ */
218
+ wechats?: pulumi.Input<pulumi.Input<inputs.tls.AlarmContentTemplateWechat>[]>;
219
+ }
@@ -0,0 +1,135 @@
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.AlarmContentTemplate = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage tls alarm content template
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const foo = new volcengine.tls.AlarmContentTemplate("foo", {
17
+ * alarmContentTemplateName: "test-alarm-content-template",
18
+ * dingTalks: [{
19
+ * content: `修改-尊敬的用户,您好!
20
+ * 您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
21
+ * 告警策略:{{Alarm}}
22
+ * 告警日志主题:{{AlarmTopicName}}
23
+ * 触发时间:{{StartTime}}
24
+ * 触发条件:{{Condition}}
25
+ * 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
26
+ * 通知内容:{{NotifyMsg|escapejs}}
27
+ * 日志检索详情:[查看详情]({{QueryUrl}})
28
+ * 告警详情:[查看详情]({{SignInUrl}})
29
+ *
30
+ * 感谢对火山引擎的支持
31
+ * `,
32
+ * locale: "zh-CN",
33
+ * title: "修改-告警通知",
34
+ * }],
35
+ * emails: [{
36
+ * content: "修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>",
37
+ * locale: "zh-CN",
38
+ * subject: "修改-告警通知",
39
+ * }],
40
+ * larks: [{
41
+ * content: `修改-尊敬的用户,您好!
42
+ * 您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
43
+ * 告警策略:{{Alarm}}
44
+ * 告警日志主题:{{AlarmTopicName}}
45
+ * 触发时间:{{StartTime}}
46
+ * 触发条件:{{Condition}}
47
+ * 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
48
+ * 通知内容:{{NotifyMsg|escapejs}}
49
+ * 日志检索详情:[查看详情]({{QueryUrl}})
50
+ * 告警详情:[查看详情]({{SignInUrl}})
51
+ *
52
+ * 感谢对火山引擎的支持
53
+ * `,
54
+ * locale: "zh-CN",
55
+ * title: "修改-告警通知",
56
+ * }],
57
+ * needValidContent: true,
58
+ * sms: [{
59
+ * content: "修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}",
60
+ * locale: "zh-CN",
61
+ * }],
62
+ * });
63
+ * ```
64
+ *
65
+ * ## Import
66
+ *
67
+ * tls alarm content template can be imported using the alarm_content_template_id, e.g.
68
+ *
69
+ * ```sh
70
+ * $ pulumi import volcengine:tls/alarmContentTemplate:AlarmContentTemplate default alarm-content-template-123456
71
+ * ```
72
+ */
73
+ class AlarmContentTemplate extends pulumi.CustomResource {
74
+ /**
75
+ * Get an existing AlarmContentTemplate resource's state with the given name, ID, and optional extra
76
+ * properties used to qualify the lookup.
77
+ *
78
+ * @param name The _unique_ name of the resulting resource.
79
+ * @param id The _unique_ provider ID of the resource to lookup.
80
+ * @param state Any extra arguments used during the lookup.
81
+ * @param opts Optional settings to control the behavior of the CustomResource.
82
+ */
83
+ static get(name, id, state, opts) {
84
+ return new AlarmContentTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
85
+ }
86
+ /**
87
+ * Returns true if the given object is an instance of AlarmContentTemplate. This is designed to work even
88
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
89
+ */
90
+ static isInstance(obj) {
91
+ if (obj === undefined || obj === null) {
92
+ return false;
93
+ }
94
+ return obj['__pulumiType'] === AlarmContentTemplate.__pulumiType;
95
+ }
96
+ constructor(name, argsOrState, opts) {
97
+ let resourceInputs = {};
98
+ opts = opts || {};
99
+ if (opts.id) {
100
+ const state = argsOrState;
101
+ resourceInputs["alarmContentTemplateId"] = state ? state.alarmContentTemplateId : undefined;
102
+ resourceInputs["alarmContentTemplateName"] = state ? state.alarmContentTemplateName : undefined;
103
+ resourceInputs["dingTalks"] = state ? state.dingTalks : undefined;
104
+ resourceInputs["emails"] = state ? state.emails : undefined;
105
+ resourceInputs["larks"] = state ? state.larks : undefined;
106
+ resourceInputs["needValidContent"] = state ? state.needValidContent : undefined;
107
+ resourceInputs["sms"] = state ? state.sms : undefined;
108
+ resourceInputs["vms"] = state ? state.vms : undefined;
109
+ resourceInputs["webhooks"] = state ? state.webhooks : undefined;
110
+ resourceInputs["wechats"] = state ? state.wechats : undefined;
111
+ }
112
+ else {
113
+ const args = argsOrState;
114
+ if ((!args || args.alarmContentTemplateName === undefined) && !opts.urn) {
115
+ throw new Error("Missing required property 'alarmContentTemplateName'");
116
+ }
117
+ resourceInputs["alarmContentTemplateName"] = args ? args.alarmContentTemplateName : undefined;
118
+ resourceInputs["dingTalks"] = args ? args.dingTalks : undefined;
119
+ resourceInputs["emails"] = args ? args.emails : undefined;
120
+ resourceInputs["larks"] = args ? args.larks : undefined;
121
+ resourceInputs["needValidContent"] = args ? args.needValidContent : undefined;
122
+ resourceInputs["sms"] = args ? args.sms : undefined;
123
+ resourceInputs["vms"] = args ? args.vms : undefined;
124
+ resourceInputs["webhooks"] = args ? args.webhooks : undefined;
125
+ resourceInputs["wechats"] = args ? args.wechats : undefined;
126
+ resourceInputs["alarmContentTemplateId"] = undefined /*out*/;
127
+ }
128
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
129
+ super(AlarmContentTemplate.__pulumiType, name, resourceInputs, opts);
130
+ }
131
+ }
132
+ exports.AlarmContentTemplate = AlarmContentTemplate;
133
+ /** @internal */
134
+ AlarmContentTemplate.__pulumiType = 'volcengine:tls/alarmContentTemplate:AlarmContentTemplate';
135
+ //# sourceMappingURL=alarmContentTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alarmContentTemplate.js","sourceRoot":"","sources":["../../tls/alarmContentTemplate.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,115 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Use this data source to query detailed information of tls alarm content templates
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const foo = volcengine.tls.getAlarmContentTemplates({});
12
+ * ```
13
+ */
14
+ /** @deprecated volcengine.tls.AlarmContentTemplates has been deprecated in favor of volcengine.tls.getAlarmContentTemplates */
15
+ export declare function alarmContentTemplates(args?: AlarmContentTemplatesArgs, opts?: pulumi.InvokeOptions): Promise<AlarmContentTemplatesResult>;
16
+ /**
17
+ * A collection of arguments for invoking AlarmContentTemplates.
18
+ */
19
+ export interface AlarmContentTemplatesArgs {
20
+ /**
21
+ * The id of the alarm content template.
22
+ */
23
+ alarmContentTemplateId?: string;
24
+ /**
25
+ * The name of the alarm content template. Fuzzy matching is supported.
26
+ */
27
+ alarmContentTemplateName?: string;
28
+ /**
29
+ * Whether to ascend.
30
+ */
31
+ asc?: boolean;
32
+ /**
33
+ * A list of alarm content template IDs.
34
+ */
35
+ ids?: string[];
36
+ /**
37
+ * The order field.
38
+ */
39
+ orderField?: string;
40
+ /**
41
+ * File name where to save data source results.
42
+ */
43
+ outputFile?: string;
44
+ }
45
+ /**
46
+ * A collection of values returned by AlarmContentTemplates.
47
+ */
48
+ export interface AlarmContentTemplatesResult {
49
+ /**
50
+ * The ID of the alarm content template.
51
+ */
52
+ readonly alarmContentTemplateId?: string;
53
+ /**
54
+ * The name of the alarm content template.
55
+ */
56
+ readonly alarmContentTemplateName?: string;
57
+ readonly asc?: boolean;
58
+ /**
59
+ * The provider-assigned unique ID for this managed resource.
60
+ */
61
+ readonly id: string;
62
+ readonly ids?: string[];
63
+ readonly orderField?: string;
64
+ readonly outputFile?: string;
65
+ /**
66
+ * The list of alarm content templates.
67
+ */
68
+ readonly templates: outputs.tls.AlarmContentTemplatesTemplate[];
69
+ /**
70
+ * The total count of alarm content templates.
71
+ */
72
+ readonly totalCount: number;
73
+ }
74
+ /**
75
+ * Use this data source to query detailed information of tls alarm content templates
76
+ * ## Example Usage
77
+ *
78
+ * ```typescript
79
+ * import * as pulumi from "@pulumi/pulumi";
80
+ * import * as volcengine from "@pulumi/volcengine";
81
+ *
82
+ * const foo = volcengine.tls.getAlarmContentTemplates({});
83
+ * ```
84
+ */
85
+ /** @deprecated volcengine.tls.AlarmContentTemplates has been deprecated in favor of volcengine.tls.getAlarmContentTemplates */
86
+ export declare function alarmContentTemplatesOutput(args?: AlarmContentTemplatesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AlarmContentTemplatesResult>;
87
+ /**
88
+ * A collection of arguments for invoking AlarmContentTemplates.
89
+ */
90
+ export interface AlarmContentTemplatesOutputArgs {
91
+ /**
92
+ * The id of the alarm content template.
93
+ */
94
+ alarmContentTemplateId?: pulumi.Input<string>;
95
+ /**
96
+ * The name of the alarm content template. Fuzzy matching is supported.
97
+ */
98
+ alarmContentTemplateName?: pulumi.Input<string>;
99
+ /**
100
+ * Whether to ascend.
101
+ */
102
+ asc?: pulumi.Input<boolean>;
103
+ /**
104
+ * A list of alarm content template IDs.
105
+ */
106
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
107
+ /**
108
+ * The order field.
109
+ */
110
+ orderField?: pulumi.Input<string>;
111
+ /**
112
+ * File name where to save data source results.
113
+ */
114
+ outputFile?: pulumi.Input<string>;
115
+ }
@@ -0,0 +1,50 @@
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.alarmContentTemplatesOutput = exports.alarmContentTemplates = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of tls alarm content templates
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ *
16
+ * const foo = volcengine.tls.getAlarmContentTemplates({});
17
+ * ```
18
+ */
19
+ /** @deprecated volcengine.tls.AlarmContentTemplates has been deprecated in favor of volcengine.tls.getAlarmContentTemplates */
20
+ function alarmContentTemplates(args, opts) {
21
+ pulumi.log.warn("alarmContentTemplates is deprecated: volcengine.tls.AlarmContentTemplates has been deprecated in favor of volcengine.tls.getAlarmContentTemplates");
22
+ args = args || {};
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("volcengine:tls/alarmContentTemplates:AlarmContentTemplates", {
25
+ "alarmContentTemplateId": args.alarmContentTemplateId,
26
+ "alarmContentTemplateName": args.alarmContentTemplateName,
27
+ "asc": args.asc,
28
+ "ids": args.ids,
29
+ "orderField": args.orderField,
30
+ "outputFile": args.outputFile,
31
+ }, opts);
32
+ }
33
+ exports.alarmContentTemplates = alarmContentTemplates;
34
+ /**
35
+ * Use this data source to query detailed information of tls alarm content templates
36
+ * ## Example Usage
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as volcengine from "@pulumi/volcengine";
41
+ *
42
+ * const foo = volcengine.tls.getAlarmContentTemplates({});
43
+ * ```
44
+ */
45
+ /** @deprecated volcengine.tls.AlarmContentTemplates has been deprecated in favor of volcengine.tls.getAlarmContentTemplates */
46
+ function alarmContentTemplatesOutput(args, opts) {
47
+ return pulumi.output(args).apply((a) => alarmContentTemplates(a, opts));
48
+ }
49
+ exports.alarmContentTemplatesOutput = alarmContentTemplatesOutput;
50
+ //# sourceMappingURL=alarmContentTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alarmContentTemplates.js","sourceRoot":"","sources":["../../tls/alarmContentTemplates.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;GAUG;AACH,+HAA+H;AAC/H,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,mJAAmJ,CAAC,CAAA;IACpK,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,wBAAwB,EAAE,IAAI,CAAC,sBAAsB;QACrD,0BAA0B,EAAE,IAAI,CAAC,wBAAwB;QACzD,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,sDAaC;AA6DD;;;;;;;;;;GAUG;AACH,+HAA+H;AAC/H,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAA2B;IAC3G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
@@ -3,29 +3,6 @@ import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
4
  /**
5
5
  * Provides a resource to manage tls alarm notify group
6
- * ## Example Usage
7
- *
8
- * ```typescript
9
- * import * as pulumi from "@pulumi/pulumi";
10
- * import * as volcengine from "@volcengine/pulumi";
11
- *
12
- * const foo = new volcengine.tls.AlarmNotifyGroup("foo", {
13
- * alarmNotifyGroupName: "tf-test",
14
- * iamProjectName: "yyy",
15
- * notifyTypes: ["Trigger"],
16
- * receivers: [{
17
- * endTime: "23:59:59",
18
- * receiverChannels: [
19
- * "Email",
20
- * "Sms",
21
- * ],
22
- * receiverNames: ["vke-qs"],
23
- * receiverType: "User",
24
- * startTime: "23:00:00",
25
- * }],
26
- * });
27
- * ```
28
- *
29
6
  * ## Import
30
7
  *
31
8
  * tls alarm notify group can be imported using the id, e.g.
@@ -62,16 +39,20 @@ export declare class AlarmNotifyGroup extends pulumi.CustomResource {
62
39
  * The name of the iam project.
63
40
  */
64
41
  readonly iamProjectName: pulumi.Output<string>;
42
+ /**
43
+ * The list of the notice rules.
44
+ */
45
+ readonly noticeRules: pulumi.Output<outputs.tls.AlarmNotifyGroupNoticeRule[] | undefined>;
65
46
  /**
66
47
  * The notify type.
67
48
  * Trigger: Alarm Trigger
68
49
  * Recovery: Alarm Recovery.
69
50
  */
70
- readonly notifyTypes: pulumi.Output<string[]>;
51
+ readonly notifyTypes: pulumi.Output<string[] | undefined>;
71
52
  /**
72
53
  * List of IAM users to receive alerts.
73
54
  */
74
- readonly receivers: pulumi.Output<outputs.tls.AlarmNotifyGroupReceiver[]>;
55
+ readonly receivers: pulumi.Output<outputs.tls.AlarmNotifyGroupReceiver[] | undefined>;
75
56
  /**
76
57
  * Create a AlarmNotifyGroup resource with the given unique name, arguments, and options.
77
58
  *
@@ -97,6 +78,10 @@ export interface AlarmNotifyGroupState {
97
78
  * The name of the iam project.
98
79
  */
99
80
  iamProjectName?: pulumi.Input<string>;
81
+ /**
82
+ * The list of the notice rules.
83
+ */
84
+ noticeRules?: pulumi.Input<pulumi.Input<inputs.tls.AlarmNotifyGroupNoticeRule>[]>;
100
85
  /**
101
86
  * The notify type.
102
87
  * Trigger: Alarm Trigger
@@ -120,14 +105,18 @@ export interface AlarmNotifyGroupArgs {
120
105
  * The name of the iam project.
121
106
  */
122
107
  iamProjectName?: pulumi.Input<string>;
108
+ /**
109
+ * The list of the notice rules.
110
+ */
111
+ noticeRules?: pulumi.Input<pulumi.Input<inputs.tls.AlarmNotifyGroupNoticeRule>[]>;
123
112
  /**
124
113
  * The notify type.
125
114
  * Trigger: Alarm Trigger
126
115
  * Recovery: Alarm Recovery.
127
116
  */
128
- notifyTypes: pulumi.Input<pulumi.Input<string>[]>;
117
+ notifyTypes?: pulumi.Input<pulumi.Input<string>[]>;
129
118
  /**
130
119
  * List of IAM users to receive alerts.
131
120
  */
132
- receivers: pulumi.Input<pulumi.Input<inputs.tls.AlarmNotifyGroupReceiver>[]>;
121
+ receivers?: pulumi.Input<pulumi.Input<inputs.tls.AlarmNotifyGroupReceiver>[]>;
133
122
  }
@@ -7,29 +7,6 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
9
  * Provides a resource to manage tls alarm notify group
10
- * ## Example Usage
11
- *
12
- * ```typescript
13
- * import * as pulumi from "@pulumi/pulumi";
14
- * import * as volcengine from "@volcengine/pulumi";
15
- *
16
- * const foo = new volcengine.tls.AlarmNotifyGroup("foo", {
17
- * alarmNotifyGroupName: "tf-test",
18
- * iamProjectName: "yyy",
19
- * notifyTypes: ["Trigger"],
20
- * receivers: [{
21
- * endTime: "23:59:59",
22
- * receiverChannels: [
23
- * "Email",
24
- * "Sms",
25
- * ],
26
- * receiverNames: ["vke-qs"],
27
- * receiverType: "User",
28
- * startTime: "23:00:00",
29
- * }],
30
- * });
31
- * ```
32
- *
33
10
  * ## Import
34
11
  *
35
12
  * tls alarm notify group can be imported using the id, e.g.
@@ -69,6 +46,7 @@ class AlarmNotifyGroup extends pulumi.CustomResource {
69
46
  resourceInputs["alarmNotifyGroupId"] = state ? state.alarmNotifyGroupId : undefined;
70
47
  resourceInputs["alarmNotifyGroupName"] = state ? state.alarmNotifyGroupName : undefined;
71
48
  resourceInputs["iamProjectName"] = state ? state.iamProjectName : undefined;
49
+ resourceInputs["noticeRules"] = state ? state.noticeRules : undefined;
72
50
  resourceInputs["notifyTypes"] = state ? state.notifyTypes : undefined;
73
51
  resourceInputs["receivers"] = state ? state.receivers : undefined;
74
52
  }
@@ -77,14 +55,9 @@ class AlarmNotifyGroup extends pulumi.CustomResource {
77
55
  if ((!args || args.alarmNotifyGroupName === undefined) && !opts.urn) {
78
56
  throw new Error("Missing required property 'alarmNotifyGroupName'");
79
57
  }
80
- if ((!args || args.notifyTypes === undefined) && !opts.urn) {
81
- throw new Error("Missing required property 'notifyTypes'");
82
- }
83
- if ((!args || args.receivers === undefined) && !opts.urn) {
84
- throw new Error("Missing required property 'receivers'");
85
- }
86
58
  resourceInputs["alarmNotifyGroupName"] = args ? args.alarmNotifyGroupName : undefined;
87
59
  resourceInputs["iamProjectName"] = args ? args.iamProjectName : undefined;
60
+ resourceInputs["noticeRules"] = args ? args.noticeRules : undefined;
88
61
  resourceInputs["notifyTypes"] = args ? args.notifyTypes : undefined;
89
62
  resourceInputs["receivers"] = args ? args.receivers : undefined;
90
63
  resourceInputs["alarmNotifyGroupId"] = undefined /*out*/;