@byteplus/pulumi-bytepluscc 0.0.52 → 0.0.54

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 (198) hide show
  1. package/billing/financialRelation.d.ts +211 -0
  2. package/billing/financialRelation.d.ts.map +1 -0
  3. package/billing/financialRelation.js +130 -0
  4. package/billing/financialRelation.js.map +1 -0
  5. package/billing/getFinancialRelation.d.ts +102 -0
  6. package/billing/getFinancialRelation.d.ts.map +1 -0
  7. package/billing/getFinancialRelation.js +51 -0
  8. package/billing/getFinancialRelation.js.map +1 -0
  9. package/billing/getFinancialRelations.d.ts +23 -0
  10. package/billing/getFinancialRelations.d.ts.map +1 -0
  11. package/billing/getFinancialRelations.js +47 -0
  12. package/billing/getFinancialRelations.js.map +1 -0
  13. package/billing/index.d.ts +10 -0
  14. package/billing/index.d.ts.map +1 -0
  15. package/billing/index.js +51 -0
  16. package/billing/index.js.map +1 -0
  17. package/cloudmonitor/alertTemplate.d.ts +252 -0
  18. package/cloudmonitor/alertTemplate.d.ts.map +1 -0
  19. package/cloudmonitor/alertTemplate.js +172 -0
  20. package/cloudmonitor/alertTemplate.js.map +1 -0
  21. package/cloudmonitor/getAlertTemplate.d.ts +90 -0
  22. package/cloudmonitor/getAlertTemplate.d.ts.map +1 -0
  23. package/cloudmonitor/getAlertTemplate.js +51 -0
  24. package/cloudmonitor/getAlertTemplate.js.map +1 -0
  25. package/cloudmonitor/getAlertTemplates.d.ts +23 -0
  26. package/cloudmonitor/getAlertTemplates.d.ts.map +1 -0
  27. package/cloudmonitor/getAlertTemplates.js +47 -0
  28. package/cloudmonitor/getAlertTemplates.js.map +1 -0
  29. package/cloudmonitor/getObjectGroup.d.ts +66 -0
  30. package/cloudmonitor/getObjectGroup.d.ts.map +1 -0
  31. package/cloudmonitor/getObjectGroup.js +51 -0
  32. package/cloudmonitor/getObjectGroup.js.map +1 -0
  33. package/cloudmonitor/getObjectGroups.d.ts +23 -0
  34. package/cloudmonitor/getObjectGroups.d.ts.map +1 -0
  35. package/cloudmonitor/getObjectGroups.js +47 -0
  36. package/cloudmonitor/getObjectGroups.js.map +1 -0
  37. package/cloudmonitor/index.d.ts +18 -0
  38. package/cloudmonitor/index.d.ts.map +1 -1
  39. package/cloudmonitor/index.js +23 -1
  40. package/cloudmonitor/index.js.map +1 -1
  41. package/cloudmonitor/objectGroup.d.ts +143 -0
  42. package/cloudmonitor/objectGroup.d.ts.map +1 -0
  43. package/cloudmonitor/objectGroup.js +124 -0
  44. package/cloudmonitor/objectGroup.js.map +1 -0
  45. package/ecs/getInstance.d.ts +1 -0
  46. package/ecs/getInstance.d.ts.map +1 -1
  47. package/ecs/getInstance.js.map +1 -1
  48. package/ecs/instance.d.ts +8 -0
  49. package/ecs/instance.d.ts.map +1 -1
  50. package/ecs/instance.js +2 -0
  51. package/ecs/instance.js.map +1 -1
  52. package/hbase/instance.d.ts +0 -5
  53. package/hbase/instance.d.ts.map +1 -1
  54. package/hbase/instance.js +1 -1
  55. package/hbase/instance.js.map +1 -1
  56. package/index.d.ts +3 -1
  57. package/index.d.ts.map +1 -1
  58. package/index.js +6 -1
  59. package/index.js.map +1 -1
  60. package/mongodb/getInstance.d.ts +25 -1
  61. package/mongodb/getInstance.d.ts.map +1 -1
  62. package/mongodb/getInstance.js.map +1 -1
  63. package/mongodb/instance.d.ts +71 -3
  64. package/mongodb/instance.d.ts.map +1 -1
  65. package/mongodb/instance.js +12 -0
  66. package/mongodb/instance.js.map +1 -1
  67. package/package.json +1 -1
  68. package/rdsmssql/getInstance.d.ts +12 -0
  69. package/rdsmssql/getInstance.d.ts.map +1 -1
  70. package/rdsmssql/getInstance.js.map +1 -1
  71. package/rdsmssql/instance.d.ts +32 -0
  72. package/rdsmssql/instance.d.ts.map +1 -1
  73. package/rdsmssql/instance.js +6 -0
  74. package/rdsmssql/instance.js.map +1 -1
  75. package/rdspostgresql/getInstance.d.ts +4 -0
  76. package/rdspostgresql/getInstance.d.ts.map +1 -1
  77. package/rdspostgresql/getInstance.js.map +1 -1
  78. package/rdspostgresql/instance.d.ts +12 -0
  79. package/rdspostgresql/instance.d.ts.map +1 -1
  80. package/rdspostgresql/instance.js +2 -0
  81. package/rdspostgresql/instance.js.map +1 -1
  82. package/redis/getInstance.d.ts +4 -0
  83. package/redis/getInstance.d.ts.map +1 -1
  84. package/redis/getInstance.js.map +1 -1
  85. package/redis/instance.d.ts +12 -0
  86. package/redis/instance.d.ts.map +1 -1
  87. package/redis/instance.js +2 -0
  88. package/redis/instance.js.map +1 -1
  89. package/securitycenter/agent.d.ts +221 -0
  90. package/securitycenter/agent.d.ts.map +1 -0
  91. package/securitycenter/agent.js +131 -0
  92. package/securitycenter/agent.js.map +1 -0
  93. package/securitycenter/getAgent.d.ts +118 -0
  94. package/securitycenter/getAgent.d.ts.map +1 -0
  95. package/securitycenter/getAgent.js +51 -0
  96. package/securitycenter/getAgent.js.map +1 -0
  97. package/securitycenter/getAgents.d.ts +23 -0
  98. package/securitycenter/getAgents.d.ts.map +1 -0
  99. package/securitycenter/getAgents.js +47 -0
  100. package/securitycenter/getAgents.js.map +1 -0
  101. package/securitycenter/index.d.ts +10 -0
  102. package/securitycenter/index.d.ts.map +1 -0
  103. package/securitycenter/index.js +51 -0
  104. package/securitycenter/index.js.map +1 -0
  105. package/transitrouter/getTransitRouterForwardPolicyEntries.d.ts +23 -0
  106. package/transitrouter/getTransitRouterForwardPolicyEntries.d.ts.map +1 -0
  107. package/transitrouter/getTransitRouterForwardPolicyEntries.js +47 -0
  108. package/transitrouter/getTransitRouterForwardPolicyEntries.js.map +1 -0
  109. package/transitrouter/getTransitRouterForwardPolicyEntry.d.ts +77 -0
  110. package/transitrouter/getTransitRouterForwardPolicyEntry.d.ts.map +1 -0
  111. package/transitrouter/getTransitRouterForwardPolicyEntry.js +51 -0
  112. package/transitrouter/getTransitRouterForwardPolicyEntry.js.map +1 -0
  113. package/transitrouter/getTransitRouterRoutePolicyTable.d.ts +73 -0
  114. package/transitrouter/getTransitRouterRoutePolicyTable.d.ts.map +1 -0
  115. package/transitrouter/getTransitRouterRoutePolicyTable.js +51 -0
  116. package/transitrouter/getTransitRouterRoutePolicyTable.js.map +1 -0
  117. package/transitrouter/getTransitRouterRoutePolicyTables.d.ts +23 -0
  118. package/transitrouter/getTransitRouterRoutePolicyTables.d.ts.map +1 -0
  119. package/transitrouter/getTransitRouterRoutePolicyTables.js +47 -0
  120. package/transitrouter/getTransitRouterRoutePolicyTables.js.map +1 -0
  121. package/transitrouter/index.d.ts +18 -0
  122. package/transitrouter/index.d.ts.map +1 -1
  123. package/transitrouter/index.js +24 -2
  124. package/transitrouter/index.js.map +1 -1
  125. package/transitrouter/transitRouterForwardPolicyEntry.d.ts +166 -0
  126. package/transitrouter/transitRouterForwardPolicyEntry.d.ts.map +1 -0
  127. package/transitrouter/transitRouterForwardPolicyEntry.js +127 -0
  128. package/transitrouter/transitRouterForwardPolicyEntry.js.map +1 -0
  129. package/transitrouter/transitRouterRoutePolicyTable.d.ts +148 -0
  130. package/transitrouter/transitRouterRoutePolicyTable.d.ts.map +1 -0
  131. package/transitrouter/transitRouterRoutePolicyTable.js +117 -0
  132. package/transitrouter/transitRouterRoutePolicyTable.js.map +1 -0
  133. package/types/input.d.ts +774 -81
  134. package/types/input.d.ts.map +1 -1
  135. package/types/output.d.ts +1594 -221
  136. package/types/output.d.ts.map +1 -1
  137. package/vke/getNodePool.d.ts +3 -3
  138. package/vke/getNodepoolScalingPolicies.d.ts +23 -0
  139. package/vke/getNodepoolScalingPolicies.d.ts.map +1 -0
  140. package/vke/getNodepoolScalingPolicies.js +47 -0
  141. package/vke/getNodepoolScalingPolicies.js.map +1 -0
  142. package/vke/getNodepoolScalingPolicy.d.ts +82 -0
  143. package/vke/getNodepoolScalingPolicy.d.ts.map +1 -0
  144. package/vke/getNodepoolScalingPolicy.js +51 -0
  145. package/vke/getNodepoolScalingPolicy.js.map +1 -0
  146. package/vke/index.d.ts +9 -0
  147. package/vke/index.d.ts.map +1 -1
  148. package/vke/index.js +12 -1
  149. package/vke/index.js.map +1 -1
  150. package/vke/nodePool.d.ts +9 -9
  151. package/vke/nodepoolScalingPolicy.d.ts +191 -0
  152. package/vke/nodepoolScalingPolicy.d.ts.map +1 -0
  153. package/vke/nodepoolScalingPolicy.js +140 -0
  154. package/vke/nodepoolScalingPolicy.js.map +1 -0
  155. package/vpc/getIpamResourceDiscoveries.d.ts +23 -0
  156. package/vpc/getIpamResourceDiscoveries.d.ts.map +1 -0
  157. package/vpc/getIpamResourceDiscoveries.js +47 -0
  158. package/vpc/getIpamResourceDiscoveries.js.map +1 -0
  159. package/vpc/getIpamResourceDiscovery.d.ts +90 -0
  160. package/vpc/getIpamResourceDiscovery.d.ts.map +1 -0
  161. package/vpc/getIpamResourceDiscovery.js +51 -0
  162. package/vpc/getIpamResourceDiscovery.js.map +1 -0
  163. package/vpc/index.d.ts +9 -0
  164. package/vpc/index.d.ts.map +1 -1
  165. package/vpc/index.js +14 -3
  166. package/vpc/index.js.map +1 -1
  167. package/vpc/ipamResourceDiscovery.d.ts +194 -0
  168. package/vpc/ipamResourceDiscovery.d.ts.map +1 -0
  169. package/vpc/ipamResourceDiscovery.js +128 -0
  170. package/vpc/ipamResourceDiscovery.js.map +1 -0
  171. package/waf/botAnalyseProtectRule.d.ts +316 -0
  172. package/waf/botAnalyseProtectRule.d.ts.map +1 -0
  173. package/waf/botAnalyseProtectRule.js +171 -0
  174. package/waf/botAnalyseProtectRule.js.map +1 -0
  175. package/waf/customBot.d.ts +207 -0
  176. package/waf/customBot.d.ts.map +1 -0
  177. package/waf/customBot.js +150 -0
  178. package/waf/customBot.js.map +1 -0
  179. package/waf/getBotAnalyseProtectRule.d.ts +126 -0
  180. package/waf/getBotAnalyseProtectRule.d.ts.map +1 -0
  181. package/waf/getBotAnalyseProtectRule.js +51 -0
  182. package/waf/getBotAnalyseProtectRule.js.map +1 -0
  183. package/waf/getBotAnalyseProtectRules.d.ts +23 -0
  184. package/waf/getBotAnalyseProtectRules.d.ts.map +1 -0
  185. package/waf/getBotAnalyseProtectRules.js +47 -0
  186. package/waf/getBotAnalyseProtectRules.js.map +1 -0
  187. package/waf/getCustomBot.d.ts +86 -0
  188. package/waf/getCustomBot.d.ts.map +1 -0
  189. package/waf/getCustomBot.js +51 -0
  190. package/waf/getCustomBot.js.map +1 -0
  191. package/waf/getCustomBots.d.ts +23 -0
  192. package/waf/getCustomBots.d.ts.map +1 -0
  193. package/waf/getCustomBots.js +47 -0
  194. package/waf/getCustomBots.js.map +1 -0
  195. package/waf/index.d.ts +18 -0
  196. package/waf/index.d.ts.map +1 -1
  197. package/waf/index.js +23 -1
  198. package/waf/index.js.map +1 -1
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.getFinancialRelationsOutput = exports.getFinancialRelations = exports.getFinancialRelationOutput = exports.getFinancialRelation = exports.FinancialRelation = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ exports.FinancialRelation = null;
32
+ utilities.lazyLoad(exports, ["FinancialRelation"], () => require("./financialRelation"));
33
+ exports.getFinancialRelation = null;
34
+ exports.getFinancialRelationOutput = null;
35
+ utilities.lazyLoad(exports, ["getFinancialRelation", "getFinancialRelationOutput"], () => require("./getFinancialRelation"));
36
+ exports.getFinancialRelations = null;
37
+ exports.getFinancialRelationsOutput = null;
38
+ utilities.lazyLoad(exports, ["getFinancialRelations", "getFinancialRelationsOutput"], () => require("./getFinancialRelations"));
39
+ const _module = {
40
+ version: utilities.getVersion(),
41
+ construct: (name, type, urn) => {
42
+ switch (type) {
43
+ case "bytepluscc:billing/financialRelation:FinancialRelation":
44
+ return new exports.FinancialRelation(name, undefined, { urn });
45
+ default:
46
+ throw new Error(`unknown resource type ${type}`);
47
+ }
48
+ },
49
+ };
50
+ pulumi.runtime.registerResourceModule("bytepluscc", "billing/financialRelation", _module);
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../billing/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAK7B,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAG5E,QAAA,oBAAoB,GAAiE,IAAW,CAAC;AACjG,QAAA,0BAA0B,GAAuE,IAAW,CAAC;AAC1H,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,sBAAsB,EAAC,4BAA4B,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAG/G,QAAA,qBAAqB,GAAmE,IAAW,CAAC;AACpG,QAAA,2BAA2B,GAAyE,IAAW,CAAC;AAC7H,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,uBAAuB,EAAC,6BAA6B,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAG/H,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,wDAAwD;gBACzD,OAAO,IAAI,yBAAiB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC/D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,252 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Cloud monitoring alert template. Defines a set of metric alert rules and notification policies, which can be applied to object groups via ApplyObjectGroupsByAlertTemplate
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
12
+ *
13
+ * const example = new bytepluscc.cloudmonitor.AlertTemplate("example", {
14
+ * name: "ccapi-alert-template-full",
15
+ * description: "ccapi cloudmonitor alert template full",
16
+ * notifyMode: "Resource",
17
+ * silenceTime: 10,
18
+ * noData: {
19
+ * enable: true,
20
+ * evaluation_count: 3,
21
+ * level: "notice",
22
+ * },
23
+ * recoveryNotify: {
24
+ * enable: true,
25
+ * },
26
+ * templateRules: [{
27
+ * condition_operator: "&&",
28
+ * evaluation_count: 3,
29
+ * evaluation_interval: 3,
30
+ * level_conditions: [{
31
+ * level: "warning",
32
+ * conditions: [{
33
+ * comparisonOperator: ">",
34
+ * evaluationWindow: 1,
35
+ * metricName: "istio_requests_total",
36
+ * metricUnit: "Count",
37
+ * statistics: "sum",
38
+ * threshold: "80",
39
+ * }],
40
+ * }],
41
+ * multiple_conditions: true,
42
+ * name: "full-rule",
43
+ * namespace: "VCM_AgentKitMcp",
44
+ * sub_namespace: "MCP_Service",
45
+ * }],
46
+ * projectName: "default",
47
+ * objectGroups: [{
48
+ * alert_methods: [
49
+ * "Email",
50
+ * "Webhook",
51
+ * ],
52
+ * contact_group_ids: ["contact_group_id-xxxx"],
53
+ * effect_start_at: "00:00",
54
+ * effect_end_at: "23:59",
55
+ * notify_templates: [{
56
+ * channel: "email",
57
+ * notifyTemplateId: "2049xxxxxxx81664",
58
+ * }],
59
+ * object_group_id: "2090xxxxxxxxxx9875456",
60
+ * webhook_ids: ["20058xxxxxx87200"],
61
+ * }],
62
+ * });
63
+ * ```
64
+ *
65
+ * ## Import
66
+ *
67
+ * ```sh
68
+ * $ pulumi import bytepluscc:cloudmonitor/alertTemplate:AlertTemplate example "template_id"
69
+ * ```
70
+ */
71
+ export declare class AlertTemplate extends pulumi.CustomResource {
72
+ /**
73
+ * Get an existing AlertTemplate resource's state with the given name, ID, and optional extra
74
+ * properties used to qualify the lookup.
75
+ *
76
+ * @param name The _unique_ name of the resulting resource.
77
+ * @param id The _unique_ provider ID of the resource to lookup.
78
+ * @param state Any extra arguments used during the lookup.
79
+ * @param opts Optional settings to control the behavior of the CustomResource.
80
+ */
81
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertTemplateState, opts?: pulumi.CustomResourceOptions): AlertTemplate;
82
+ /**
83
+ * Returns true if the given object is an instance of AlertTemplate. This is designed to work even
84
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
85
+ */
86
+ static isInstance(obj: any): obj is AlertTemplate;
87
+ /**
88
+ * Project name where the alert template has been applied, returned by the service side
89
+ */
90
+ readonly appliedProjectName: pulumi.Output<string>;
91
+ /**
92
+ * Creation time
93
+ */
94
+ readonly createdAt: pulumi.Output<string>;
95
+ /**
96
+ * Alert template description
97
+ */
98
+ readonly description: pulumi.Output<string>;
99
+ /**
100
+ * Alert template name
101
+ */
102
+ readonly name: pulumi.Output<string>;
103
+ /**
104
+ * No Data Alert Configuration
105
+ */
106
+ readonly noData: pulumi.Output<outputs.cloudmonitor.AlertTemplateNoData>;
107
+ /**
108
+ * Notification mode
109
+ */
110
+ readonly notifyMode: pulumi.Output<string>;
111
+ /**
112
+ * List of object group binding configurations applied to this alert template
113
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
114
+ */
115
+ readonly objectGroups: pulumi.Output<outputs.cloudmonitor.AlertTemplateObjectGroup[]>;
116
+ /**
117
+ * Project name of the alert template
118
+ */
119
+ readonly projectName: pulumi.Output<string>;
120
+ /**
121
+ * Alert recovery notification configuration
122
+ */
123
+ readonly recoveryNotify: pulumi.Output<outputs.cloudmonitor.AlertTemplateRecoveryNotify>;
124
+ /**
125
+ * Silence period (minutes)
126
+ */
127
+ readonly silenceTime: pulumi.Output<number>;
128
+ /**
129
+ * Alert template ID
130
+ */
131
+ readonly templateId: pulumi.Output<string>;
132
+ /**
133
+ * Alert template rule list
134
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
135
+ */
136
+ readonly templateRules: pulumi.Output<outputs.cloudmonitor.AlertTemplateTemplateRule[]>;
137
+ /**
138
+ * Update time
139
+ */
140
+ readonly updatedAt: pulumi.Output<string>;
141
+ /**
142
+ * Create a AlertTemplate resource with the given unique name, arguments, and options.
143
+ *
144
+ * @param name The _unique_ name of the resource.
145
+ * @param args The arguments to use to populate this resource's properties.
146
+ * @param opts A bag of options that control this resource's behavior.
147
+ */
148
+ constructor(name: string, args: AlertTemplateArgs, opts?: pulumi.CustomResourceOptions);
149
+ }
150
+ /**
151
+ * Input properties used for looking up and filtering AlertTemplate resources.
152
+ */
153
+ export interface AlertTemplateState {
154
+ /**
155
+ * Project name where the alert template has been applied, returned by the service side
156
+ */
157
+ appliedProjectName?: pulumi.Input<string | undefined>;
158
+ /**
159
+ * Creation time
160
+ */
161
+ createdAt?: pulumi.Input<string | undefined>;
162
+ /**
163
+ * Alert template description
164
+ */
165
+ description?: pulumi.Input<string | undefined>;
166
+ /**
167
+ * Alert template name
168
+ */
169
+ name?: pulumi.Input<string | undefined>;
170
+ /**
171
+ * No Data Alert Configuration
172
+ */
173
+ noData?: pulumi.Input<inputs.cloudmonitor.AlertTemplateNoData | undefined>;
174
+ /**
175
+ * Notification mode
176
+ */
177
+ notifyMode?: pulumi.Input<string | undefined>;
178
+ /**
179
+ * List of object group binding configurations applied to this alert template
180
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
181
+ */
182
+ objectGroups?: pulumi.Input<pulumi.Input<inputs.cloudmonitor.AlertTemplateObjectGroup>[] | undefined>;
183
+ /**
184
+ * Project name of the alert template
185
+ */
186
+ projectName?: pulumi.Input<string | undefined>;
187
+ /**
188
+ * Alert recovery notification configuration
189
+ */
190
+ recoveryNotify?: pulumi.Input<inputs.cloudmonitor.AlertTemplateRecoveryNotify | undefined>;
191
+ /**
192
+ * Silence period (minutes)
193
+ */
194
+ silenceTime?: pulumi.Input<number | undefined>;
195
+ /**
196
+ * Alert template ID
197
+ */
198
+ templateId?: pulumi.Input<string | undefined>;
199
+ /**
200
+ * Alert template rule list
201
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
202
+ */
203
+ templateRules?: pulumi.Input<pulumi.Input<inputs.cloudmonitor.AlertTemplateTemplateRule>[] | undefined>;
204
+ /**
205
+ * Update time
206
+ */
207
+ updatedAt?: pulumi.Input<string | undefined>;
208
+ }
209
+ /**
210
+ * The set of arguments for constructing a AlertTemplate resource.
211
+ */
212
+ export interface AlertTemplateArgs {
213
+ /**
214
+ * Alert template description
215
+ */
216
+ description?: pulumi.Input<string | undefined>;
217
+ /**
218
+ * Alert template name
219
+ */
220
+ name: pulumi.Input<string>;
221
+ /**
222
+ * No Data Alert Configuration
223
+ */
224
+ noData?: pulumi.Input<inputs.cloudmonitor.AlertTemplateNoData | undefined>;
225
+ /**
226
+ * Notification mode
227
+ */
228
+ notifyMode: pulumi.Input<string>;
229
+ /**
230
+ * List of object group binding configurations applied to this alert template
231
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
232
+ */
233
+ objectGroups?: pulumi.Input<pulumi.Input<inputs.cloudmonitor.AlertTemplateObjectGroup>[] | undefined>;
234
+ /**
235
+ * Project name of the alert template
236
+ */
237
+ projectName?: pulumi.Input<string | undefined>;
238
+ /**
239
+ * Alert recovery notification configuration
240
+ */
241
+ recoveryNotify?: pulumi.Input<inputs.cloudmonitor.AlertTemplateRecoveryNotify | undefined>;
242
+ /**
243
+ * Silence period (minutes)
244
+ */
245
+ silenceTime: pulumi.Input<number>;
246
+ /**
247
+ * Alert template rule list
248
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
249
+ */
250
+ templateRules?: pulumi.Input<pulumi.Input<inputs.cloudmonitor.AlertTemplateTemplateRule>[] | undefined>;
251
+ }
252
+ //# sourceMappingURL=alertTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertTemplate.d.ts","sourceRoot":"","sources":["../../cloudmonitor/alertTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,qBAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,aAAa;IAO5I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,aAAa;IAOxD;;OAEG;IACH,SAAgC,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IACxF;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;;OAGG;I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,GAAG,SAAS,CAAC,CAAC;IAC3E;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,wBAAwB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACtG;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAAC;IAC3F;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,yBAAyB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC3G"}
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.AlertTemplate = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Cloud monitoring alert template. Defines a set of metric alert rules and notification policies, which can be applied to object groups via ApplyObjectGroupsByAlertTemplate
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
39
+ *
40
+ * const example = new bytepluscc.cloudmonitor.AlertTemplate("example", {
41
+ * name: "ccapi-alert-template-full",
42
+ * description: "ccapi cloudmonitor alert template full",
43
+ * notifyMode: "Resource",
44
+ * silenceTime: 10,
45
+ * noData: {
46
+ * enable: true,
47
+ * evaluation_count: 3,
48
+ * level: "notice",
49
+ * },
50
+ * recoveryNotify: {
51
+ * enable: true,
52
+ * },
53
+ * templateRules: [{
54
+ * condition_operator: "&&",
55
+ * evaluation_count: 3,
56
+ * evaluation_interval: 3,
57
+ * level_conditions: [{
58
+ * level: "warning",
59
+ * conditions: [{
60
+ * comparisonOperator: ">",
61
+ * evaluationWindow: 1,
62
+ * metricName: "istio_requests_total",
63
+ * metricUnit: "Count",
64
+ * statistics: "sum",
65
+ * threshold: "80",
66
+ * }],
67
+ * }],
68
+ * multiple_conditions: true,
69
+ * name: "full-rule",
70
+ * namespace: "VCM_AgentKitMcp",
71
+ * sub_namespace: "MCP_Service",
72
+ * }],
73
+ * projectName: "default",
74
+ * objectGroups: [{
75
+ * alert_methods: [
76
+ * "Email",
77
+ * "Webhook",
78
+ * ],
79
+ * contact_group_ids: ["contact_group_id-xxxx"],
80
+ * effect_start_at: "00:00",
81
+ * effect_end_at: "23:59",
82
+ * notify_templates: [{
83
+ * channel: "email",
84
+ * notifyTemplateId: "2049xxxxxxx81664",
85
+ * }],
86
+ * object_group_id: "2090xxxxxxxxxx9875456",
87
+ * webhook_ids: ["20058xxxxxx87200"],
88
+ * }],
89
+ * });
90
+ * ```
91
+ *
92
+ * ## Import
93
+ *
94
+ * ```sh
95
+ * $ pulumi import bytepluscc:cloudmonitor/alertTemplate:AlertTemplate example "template_id"
96
+ * ```
97
+ */
98
+ class AlertTemplate extends pulumi.CustomResource {
99
+ /**
100
+ * Get an existing AlertTemplate resource's state with the given name, ID, and optional extra
101
+ * properties used to qualify the lookup.
102
+ *
103
+ * @param name The _unique_ name of the resulting resource.
104
+ * @param id The _unique_ provider ID of the resource to lookup.
105
+ * @param state Any extra arguments used during the lookup.
106
+ * @param opts Optional settings to control the behavior of the CustomResource.
107
+ */
108
+ static get(name, id, state, opts) {
109
+ return new AlertTemplate(name, state, { ...opts, id: id });
110
+ }
111
+ /** @internal */
112
+ static __pulumiType = 'bytepluscc:cloudmonitor/alertTemplate:AlertTemplate';
113
+ /**
114
+ * Returns true if the given object is an instance of AlertTemplate. This is designed to work even
115
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
116
+ */
117
+ static isInstance(obj) {
118
+ if (obj === undefined || obj === null) {
119
+ return false;
120
+ }
121
+ return obj['__pulumiType'] === AlertTemplate.__pulumiType;
122
+ }
123
+ constructor(name, argsOrState, opts) {
124
+ let resourceInputs = {};
125
+ opts = opts || {};
126
+ if (opts.id) {
127
+ const state = argsOrState;
128
+ resourceInputs["appliedProjectName"] = state?.appliedProjectName;
129
+ resourceInputs["createdAt"] = state?.createdAt;
130
+ resourceInputs["description"] = state?.description;
131
+ resourceInputs["name"] = state?.name;
132
+ resourceInputs["noData"] = state?.noData;
133
+ resourceInputs["notifyMode"] = state?.notifyMode;
134
+ resourceInputs["objectGroups"] = state?.objectGroups;
135
+ resourceInputs["projectName"] = state?.projectName;
136
+ resourceInputs["recoveryNotify"] = state?.recoveryNotify;
137
+ resourceInputs["silenceTime"] = state?.silenceTime;
138
+ resourceInputs["templateId"] = state?.templateId;
139
+ resourceInputs["templateRules"] = state?.templateRules;
140
+ resourceInputs["updatedAt"] = state?.updatedAt;
141
+ }
142
+ else {
143
+ const args = argsOrState;
144
+ if (args?.name === undefined && !opts.urn) {
145
+ throw new Error("Missing required property 'name'");
146
+ }
147
+ if (args?.notifyMode === undefined && !opts.urn) {
148
+ throw new Error("Missing required property 'notifyMode'");
149
+ }
150
+ if (args?.silenceTime === undefined && !opts.urn) {
151
+ throw new Error("Missing required property 'silenceTime'");
152
+ }
153
+ resourceInputs["description"] = args?.description;
154
+ resourceInputs["name"] = args?.name;
155
+ resourceInputs["noData"] = args?.noData;
156
+ resourceInputs["notifyMode"] = args?.notifyMode;
157
+ resourceInputs["objectGroups"] = args?.objectGroups;
158
+ resourceInputs["projectName"] = args?.projectName;
159
+ resourceInputs["recoveryNotify"] = args?.recoveryNotify;
160
+ resourceInputs["silenceTime"] = args?.silenceTime;
161
+ resourceInputs["templateRules"] = args?.templateRules;
162
+ resourceInputs["appliedProjectName"] = undefined /*out*/;
163
+ resourceInputs["createdAt"] = undefined /*out*/;
164
+ resourceInputs["templateId"] = undefined /*out*/;
165
+ resourceInputs["updatedAt"] = undefined /*out*/;
166
+ }
167
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
168
+ super(AlertTemplate.__pulumiType, name, resourceInputs, opts);
169
+ }
170
+ }
171
+ exports.AlertTemplate = AlertTemplate;
172
+ //# sourceMappingURL=alertTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertTemplate.js","sourceRoot":"","sources":["../../cloudmonitor/alertTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AA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AgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,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,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAxIL,sCAyIC"}
@@ -0,0 +1,90 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Data Source schema for Byteplus::CloudMonitor::AlertTemplate
5
+ */
6
+ export declare function getAlertTemplate(args: GetAlertTemplateArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertTemplateResult>;
7
+ /**
8
+ * A collection of arguments for invoking getAlertTemplate.
9
+ */
10
+ export interface GetAlertTemplateArgs {
11
+ /**
12
+ * Uniquely identifies the resource.
13
+ */
14
+ id: string;
15
+ }
16
+ /**
17
+ * A collection of values returned by getAlertTemplate.
18
+ */
19
+ export interface GetAlertTemplateResult {
20
+ /**
21
+ * Project name where the alert template has been applied, returned by the service side
22
+ */
23
+ readonly appliedProjectName: string;
24
+ /**
25
+ * Creation time
26
+ */
27
+ readonly createdAt: string;
28
+ /**
29
+ * Alert template description
30
+ */
31
+ readonly description: string;
32
+ /**
33
+ * Uniquely identifies the resource.
34
+ */
35
+ readonly id: string;
36
+ /**
37
+ * Alert template name
38
+ */
39
+ readonly name: string;
40
+ /**
41
+ * No Data Alert Configuration
42
+ */
43
+ readonly noData: outputs.cloudmonitor.GetAlertTemplateNoData;
44
+ /**
45
+ * Notification mode
46
+ */
47
+ readonly notifyMode: string;
48
+ /**
49
+ * List of object group binding configurations applied to this alert template
50
+ */
51
+ readonly objectGroups: outputs.cloudmonitor.GetAlertTemplateObjectGroup[];
52
+ /**
53
+ * Project name of the alert template
54
+ */
55
+ readonly projectName: string;
56
+ /**
57
+ * Alert recovery notification configuration
58
+ */
59
+ readonly recoveryNotify: outputs.cloudmonitor.GetAlertTemplateRecoveryNotify;
60
+ /**
61
+ * Silence period (minutes)
62
+ */
63
+ readonly silenceTime: number;
64
+ /**
65
+ * Alert template ID
66
+ */
67
+ readonly templateId: string;
68
+ /**
69
+ * Alert template rule list
70
+ */
71
+ readonly templateRules: outputs.cloudmonitor.GetAlertTemplateTemplateRule[];
72
+ /**
73
+ * Update time
74
+ */
75
+ readonly updatedAt: string;
76
+ }
77
+ /**
78
+ * Data Source schema for Byteplus::CloudMonitor::AlertTemplate
79
+ */
80
+ export declare function getAlertTemplateOutput(args: GetAlertTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertTemplateResult>;
81
+ /**
82
+ * A collection of arguments for invoking getAlertTemplate.
83
+ */
84
+ export interface GetAlertTemplateOutputArgs {
85
+ /**
86
+ * Uniquely identifies the resource.
87
+ */
88
+ id: pulumi.Input<string>;
89
+ }
90
+ //# sourceMappingURL=getAlertTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertTemplate.d.ts","sourceRoot":"","sources":["../../cloudmonitor/getAlertTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,EAAE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AC,MAAM,CAAC,sBAAsB,CAAC,CAKjJ;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.getAlertTemplateOutput = exports.getAlertTemplate = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Data Source schema for Byteplus::CloudMonitor::AlertTemplate
33
+ */
34
+ function getAlertTemplate(args, opts) {
35
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
36
+ return pulumi.runtime.invoke("bytepluscc:cloudmonitor/getAlertTemplate:getAlertTemplate", {
37
+ "id": args.id,
38
+ }, opts);
39
+ }
40
+ exports.getAlertTemplate = getAlertTemplate;
41
+ /**
42
+ * Data Source schema for Byteplus::CloudMonitor::AlertTemplate
43
+ */
44
+ function getAlertTemplateOutput(args, opts) {
45
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
46
+ return pulumi.runtime.invokeOutput("bytepluscc:cloudmonitor/getAlertTemplate:getAlertTemplate", {
47
+ "id": args.id,
48
+ }, opts);
49
+ }
50
+ exports.getAlertTemplateOutput = getAlertTemplateOutput;
51
+ //# sourceMappingURL=getAlertTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertTemplate.js","sourceRoot":"","sources":["../../cloudmonitor/getAlertTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4CAKC;AAyED;;GAEG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAAiC;IACtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2DAA2D,EAAE;QAC5F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wDAKC"}
@@ -0,0 +1,23 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Plural Data Source schema for Byteplus::CloudMonitor::AlertTemplate
4
+ */
5
+ export declare function getAlertTemplates(opts?: pulumi.InvokeOptions): Promise<GetAlertTemplatesResult>;
6
+ /**
7
+ * A collection of values returned by getAlertTemplates.
8
+ */
9
+ export interface GetAlertTemplatesResult {
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 Byteplus::CloudMonitor::AlertTemplate
21
+ */
22
+ export declare function getAlertTemplatesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertTemplatesResult>;
23
+ //# sourceMappingURL=getAlertTemplates.d.ts.map