@volcengine/pulumi 0.0.27 → 0.0.28

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 (264) hide show
  1. package/clb/clb.d.ts +8 -8
  2. package/clb/clb.js +0 -3
  3. package/clb/clb.js.map +1 -1
  4. package/cloud_firewall/cfwAddressBook.d.ts +128 -0
  5. package/cloud_firewall/cfwAddressBook.js +93 -0
  6. package/cloud_firewall/cfwAddressBook.js.map +1 -0
  7. package/cloud_firewall/cfwAddressBooks.d.ts +122 -0
  8. package/cloud_firewall/cfwAddressBooks.js +53 -0
  9. package/cloud_firewall/cfwAddressBooks.js.map +1 -0
  10. package/cloud_firewall/cfwControlPolicies.d.ts +176 -0
  11. package/cloud_firewall/cfwControlPolicies.js +56 -0
  12. package/cloud_firewall/cfwControlPolicies.js.map +1 -0
  13. package/cloud_firewall/cfwControlPolicy.d.ts +384 -0
  14. package/cloud_firewall/cfwControlPolicy.js +170 -0
  15. package/cloud_firewall/cfwControlPolicy.js.map +1 -0
  16. package/cloud_firewall/cfwControlPolicyPriority.d.ts +135 -0
  17. package/cloud_firewall/cfwControlPolicyPriority.js +116 -0
  18. package/cloud_firewall/cfwControlPolicyPriority.js.map +1 -0
  19. package/cloud_firewall/cfwDnsControlPolicies.d.ts +160 -0
  20. package/cloud_firewall/cfwDnsControlPolicies.js +80 -0
  21. package/cloud_firewall/cfwDnsControlPolicies.js.map +1 -0
  22. package/cloud_firewall/cfwDnsControlPolicy.d.ts +173 -0
  23. package/cloud_firewall/cfwDnsControlPolicy.js +107 -0
  24. package/cloud_firewall/cfwDnsControlPolicy.js.map +1 -0
  25. package/cloud_firewall/cfwNatFirewallControlPolicies.d.ts +200 -0
  26. package/cloud_firewall/cfwNatFirewallControlPolicies.js +58 -0
  27. package/cloud_firewall/cfwNatFirewallControlPolicies.js.map +1 -0
  28. package/cloud_firewall/cfwNatFirewallControlPolicy.d.ts +406 -0
  29. package/cloud_firewall/cfwNatFirewallControlPolicy.js +179 -0
  30. package/cloud_firewall/cfwNatFirewallControlPolicy.js.map +1 -0
  31. package/cloud_firewall/cfwNatFirewallControlPolicyPriority.d.ts +150 -0
  32. package/cloud_firewall/cfwNatFirewallControlPolicyPriority.js +124 -0
  33. package/cloud_firewall/cfwNatFirewallControlPolicyPriority.js.map +1 -0
  34. package/cloud_firewall/cfwVpcFirewallAclRule.d.ts +392 -0
  35. package/cloud_firewall/cfwVpcFirewallAclRule.js +172 -0
  36. package/cloud_firewall/cfwVpcFirewallAclRule.js.map +1 -0
  37. package/cloud_firewall/cfwVpcFirewallAclRulePriority.d.ts +135 -0
  38. package/cloud_firewall/cfwVpcFirewallAclRulePriority.js +116 -0
  39. package/cloud_firewall/cfwVpcFirewallAclRulePriority.js.map +1 -0
  40. package/cloud_firewall/cfwVpcFirewallAclRules.d.ts +182 -0
  41. package/cloud_firewall/cfwVpcFirewallAclRules.js +62 -0
  42. package/cloud_firewall/cfwVpcFirewallAclRules.js.map +1 -0
  43. package/cloud_firewall/index.d.ts +39 -0
  44. package/cloud_firewall/index.js +72 -0
  45. package/cloud_firewall/index.js.map +1 -0
  46. package/cloud_monitor/rule.d.ts +29 -11
  47. package/cloud_monitor/rule.js +10 -2
  48. package/cloud_monitor/rule.js.map +1 -1
  49. package/config/vars.d.ts +4 -0
  50. package/config/vars.js +6 -0
  51. package/config/vars.js.map +1 -1
  52. package/dns/backup.d.ts +83 -0
  53. package/dns/backup.js +75 -0
  54. package/dns/backup.js.map +1 -0
  55. package/dns/backupSchedule.d.ts +90 -0
  56. package/dns/backupSchedule.js +81 -0
  57. package/dns/backupSchedule.js.map +1 -0
  58. package/dns/backups.d.ts +84 -0
  59. package/dns/backups.js +47 -0
  60. package/dns/backups.js.map +1 -0
  61. package/dns/index.d.ts +24 -0
  62. package/dns/index.js +49 -0
  63. package/dns/index.js.map +1 -0
  64. package/dns/record.d.ts +220 -0
  65. package/dns/record.js +115 -0
  66. package/dns/record.js.map +1 -0
  67. package/dns/recordSets.d.ts +122 -0
  68. package/dns/recordSets.js +58 -0
  69. package/dns/recordSets.js.map +1 -0
  70. package/dns/records.d.ts +150 -0
  71. package/dns/records.js +53 -0
  72. package/dns/records.js.map +1 -0
  73. package/dns/zone.d.ts +225 -0
  74. package/dns/zone.js +113 -0
  75. package/dns/zone.js.map +1 -0
  76. package/dns/zones.d.ts +169 -0
  77. package/dns/zones.js +61 -0
  78. package/dns/zones.js.map +1 -0
  79. package/ebs/volume.d.ts +27 -15
  80. package/ebs/volume.js +2 -0
  81. package/ebs/volume.js.map +1 -1
  82. package/ecs/instance.d.ts +12 -0
  83. package/ecs/instance.js +2 -0
  84. package/ecs/instance.js.map +1 -1
  85. package/escloud/instance.d.ts +1 -1
  86. package/escloud/instance.js +1 -1
  87. package/escloud/instances.d.ts +2 -2
  88. package/escloud/instances.js +2 -2
  89. package/escloud/regions.d.ts +2 -2
  90. package/escloud/regions.js +2 -2
  91. package/escloud/zones.d.ts +2 -2
  92. package/escloud/zones.js +2 -2
  93. package/escloud_v2/escloudInstanceV2.d.ts +496 -0
  94. package/escloud_v2/escloudInstanceV2.js +243 -0
  95. package/escloud_v2/escloudInstanceV2.js.map +1 -0
  96. package/escloud_v2/escloudInstancesV2.d.ts +53 -0
  97. package/escloud_v2/escloudInstancesV2.js +28 -0
  98. package/escloud_v2/escloudInstancesV2.js.map +1 -0
  99. package/escloud_v2/escloudIpWhiteList.d.ts +188 -0
  100. package/escloud_v2/escloudIpWhiteList.js +171 -0
  101. package/escloud_v2/escloudIpWhiteList.js.map +1 -0
  102. package/escloud_v2/index.d.ts +9 -0
  103. package/escloud_v2/index.js +30 -0
  104. package/escloud_v2/index.js.map +1 -0
  105. package/index.d.ts +6 -1
  106. package/index.js +11 -1
  107. package/index.js.map +1 -1
  108. package/mongodb/account.d.ts +188 -0
  109. package/mongodb/account.js +142 -0
  110. package/mongodb/account.js.map +1 -0
  111. package/mongodb/accounts.d.ts +16 -4
  112. package/mongodb/accounts.js +1 -0
  113. package/mongodb/accounts.js.map +1 -1
  114. package/mongodb/endpoint.d.ts +3 -3
  115. package/mongodb/index.d.ts +3 -0
  116. package/mongodb/index.js +6 -1
  117. package/mongodb/index.js.map +1 -1
  118. package/mongodb/instance.d.ts +117 -46
  119. package/mongodb/instance.js +40 -7
  120. package/mongodb/instance.js.map +1 -1
  121. package/mongodb/instanceParameter.d.ts +3 -3
  122. package/mongodb/instances.d.ts +12 -0
  123. package/mongodb/instances.js +1 -0
  124. package/mongodb/instances.js.map +1 -1
  125. package/mongodb/mongoAllowList.d.ts +43 -4
  126. package/mongodb/mongoAllowList.js +10 -1
  127. package/mongodb/mongoAllowList.js.map +1 -1
  128. package/mongodb/mongoAllowLists.d.ts +12 -0
  129. package/mongodb/mongoAllowLists.js +1 -0
  130. package/mongodb/mongoAllowLists.js.map +1 -1
  131. package/package.json +1 -1
  132. package/privatelink/vpcEndpoint.d.ts +20 -0
  133. package/privatelink/vpcEndpoint.js +4 -0
  134. package/privatelink/vpcEndpoint.js.map +1 -1
  135. package/provider.d.ts +8 -0
  136. package/provider.js +1 -0
  137. package/provider.js.map +1 -1
  138. package/rabbitmq/index.d.ts +15 -0
  139. package/rabbitmq/index.js +38 -0
  140. package/rabbitmq/index.js.map +1 -0
  141. package/rabbitmq/instance.d.ts +323 -0
  142. package/rabbitmq/instance.js +172 -0
  143. package/rabbitmq/instance.js.map +1 -0
  144. package/rabbitmq/instancePlugin.d.ts +173 -0
  145. package/rabbitmq/instancePlugin.js +128 -0
  146. package/rabbitmq/instancePlugin.js.map +1 -0
  147. package/rabbitmq/instancePlugins.d.ts +154 -0
  148. package/rabbitmq/instancePlugins.js +117 -0
  149. package/rabbitmq/instancePlugins.js.map +1 -0
  150. package/rabbitmq/instances.d.ts +251 -0
  151. package/rabbitmq/instances.js +126 -0
  152. package/rabbitmq/instances.js.map +1 -0
  153. package/rabbitmq/publicAddress.d.ts +124 -0
  154. package/rabbitmq/publicAddress.js +121 -0
  155. package/rabbitmq/publicAddress.js.map +1 -0
  156. package/rds_mysql/account.d.ts +15 -5
  157. package/rds_mysql/account.js +15 -5
  158. package/rds_mysql/account.js.map +1 -1
  159. package/rds_mysql/allowlist.d.ts +77 -8
  160. package/rds_mysql/allowlist.js +22 -7
  161. package/rds_mysql/allowlist.js.map +1 -1
  162. package/rds_mysql/backup.d.ts +128 -0
  163. package/rds_mysql/backup.js +85 -0
  164. package/rds_mysql/backup.js.map +1 -0
  165. package/rds_mysql/backupPolicy.d.ts +380 -0
  166. package/rds_mysql/backupPolicy.js +125 -0
  167. package/rds_mysql/backupPolicy.js.map +1 -0
  168. package/rds_mysql/backups.d.ts +178 -0
  169. package/rds_mysql/backups.js +68 -0
  170. package/rds_mysql/backups.js.map +1 -0
  171. package/rds_mysql/endpoint.d.ts +254 -0
  172. package/rds_mysql/endpoint.js +124 -0
  173. package/rds_mysql/endpoint.js.map +1 -0
  174. package/rds_mysql/endpointPublicAddress.d.ts +108 -0
  175. package/rds_mysql/endpointPublicAddress.js +88 -0
  176. package/rds_mysql/endpointPublicAddress.js.map +1 -0
  177. package/rds_mysql/endpoints.d.ts +75 -0
  178. package/rds_mysql/endpoints.js +46 -0
  179. package/rds_mysql/endpoints.js.map +1 -0
  180. package/rds_mysql/index.d.ts +33 -0
  181. package/rds_mysql/index.js +44 -1
  182. package/rds_mysql/index.js.map +1 -1
  183. package/rds_mysql/instance.d.ts +107 -5
  184. package/rds_mysql/instance.js +21 -3
  185. package/rds_mysql/instance.js.map +1 -1
  186. package/rds_mysql/instanceSpecs.d.ts +122 -0
  187. package/rds_mysql/instanceSpecs.js +52 -0
  188. package/rds_mysql/instanceSpecs.js.map +1 -0
  189. package/rds_mysql/parameterTemplate.d.ts +132 -0
  190. package/rds_mysql/parameterTemplate.js +97 -0
  191. package/rds_mysql/parameterTemplate.js.map +1 -0
  192. package/rds_mysql/parameterTemplates.d.ts +124 -0
  193. package/rds_mysql/parameterTemplates.js +52 -0
  194. package/rds_mysql/parameterTemplates.js.map +1 -0
  195. package/rds_mysql/regions.d.ts +62 -0
  196. package/rds_mysql/regions.js +42 -0
  197. package/rds_mysql/regions.js.map +1 -0
  198. package/rds_mysql/zones.d.ts +62 -0
  199. package/rds_mysql/zones.js +42 -0
  200. package/rds_mysql/zones.js.map +1 -0
  201. package/redis/instance.d.ts +4 -4
  202. package/redis/instance.js +4 -4
  203. package/rocketmq/accessKeys.d.ts +90 -0
  204. package/rocketmq/accessKeys.js +47 -0
  205. package/rocketmq/accessKeys.js.map +1 -0
  206. package/rocketmq/allowLists.d.ts +62 -0
  207. package/rocketmq/allowLists.js +42 -0
  208. package/rocketmq/allowLists.js.map +1 -0
  209. package/rocketmq/groups.d.ts +99 -0
  210. package/rocketmq/groups.js +48 -0
  211. package/rocketmq/groups.js.map +1 -0
  212. package/rocketmq/index.d.ts +36 -0
  213. package/rocketmq/index.js +67 -0
  214. package/rocketmq/index.js.map +1 -0
  215. package/rocketmq/instances.d.ts +193 -0
  216. package/rocketmq/instances.js +57 -0
  217. package/rocketmq/instances.js.map +1 -0
  218. package/rocketmq/rocketMQAccessKey.d.ts +176 -0
  219. package/rocketmq/rocketMQAccessKey.js +130 -0
  220. package/rocketmq/rocketMQAccessKey.js.map +1 -0
  221. package/rocketmq/rocketMQAllowList.d.ts +132 -0
  222. package/rocketmq/rocketMQAllowList.js +93 -0
  223. package/rocketmq/rocketMQAllowList.js.map +1 -0
  224. package/rocketmq/rocketMQAllowListAssociate.d.ts +121 -0
  225. package/rocketmq/rocketMQAllowListAssociate.js +118 -0
  226. package/rocketmq/rocketMQAllowListAssociate.js.map +1 -0
  227. package/rocketmq/rocketMQGroup.d.ts +190 -0
  228. package/rocketmq/rocketMQGroup.js +129 -0
  229. package/rocketmq/rocketMQGroup.js.map +1 -0
  230. package/rocketmq/rocketMQInstance.d.ts +351 -0
  231. package/rocketmq/rocketMQInstance.js +171 -0
  232. package/rocketmq/rocketMQInstance.js.map +1 -0
  233. package/rocketmq/rocketMQPublicAddress.d.ts +133 -0
  234. package/rocketmq/rocketMQPublicAddress.js +120 -0
  235. package/rocketmq/rocketMQPublicAddress.js.map +1 -0
  236. package/rocketmq/rocketMQTopic.d.ts +191 -0
  237. package/rocketmq/rocketMQTopic.js +140 -0
  238. package/rocketmq/rocketMQTopic.js.map +1 -0
  239. package/rocketmq/topics.d.ts +121 -0
  240. package/rocketmq/topics.js +49 -0
  241. package/rocketmq/topics.js.map +1 -0
  242. package/tos/bucket.d.ts +27 -1
  243. package/tos/bucket.js +7 -1
  244. package/tos/bucket.js.map +1 -1
  245. package/tos/bucketInventories.d.ts +156 -0
  246. package/tos/bucketInventories.js +108 -0
  247. package/tos/bucketInventories.js.map +1 -0
  248. package/tos/bucketInventory.d.ts +180 -0
  249. package/tos/bucketInventory.js +127 -0
  250. package/tos/bucketInventory.js.map +1 -0
  251. package/tos/bucketObject.d.ts +11 -3
  252. package/tos/bucketObject.js +2 -0
  253. package/tos/bucketObject.js.map +1 -1
  254. package/tos/bucketRealtimeLog.d.ts +100 -0
  255. package/tos/bucketRealtimeLog.js +88 -0
  256. package/tos/bucketRealtimeLog.js.map +1 -0
  257. package/tos/index.d.ts +9 -0
  258. package/tos/index.js +14 -1
  259. package/tos/index.js.map +1 -1
  260. package/types/input.d.ts +570 -8
  261. package/types/output.d.ts +8719 -5442
  262. package/vke/nodePool.d.ts +1 -0
  263. package/vke/nodePool.js +1 -0
  264. package/vke/nodePool.js.map +1 -1
@@ -0,0 +1,120 @@
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.RocketMQPublicAddress = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage rocketmq public address
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ * import * as volcengine from "@volcengine/pulumi";
16
+ *
17
+ * const fooZones = volcengine.ecs.Zones({});
18
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
19
+ * vpcName: "acc-test-vpc",
20
+ * cidrBlock: "172.16.0.0/16",
21
+ * });
22
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
23
+ * subnetName: "acc-test-subnet",
24
+ * cidrBlock: "172.16.0.0/24",
25
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
26
+ * vpcId: fooVpc.id,
27
+ * });
28
+ * const fooRocketMQInstance = new volcengine.rocketmq.RocketMQInstance("fooRocketMQInstance", {
29
+ * zoneIds: [fooZones.then(fooZones => fooZones.zones?.[0]?.id)],
30
+ * subnetId: fooSubnet.id,
31
+ * version: "4.8",
32
+ * computeSpec: "rocketmq.n1.x2.micro",
33
+ * storageSpace: 300,
34
+ * autoScaleQueue: true,
35
+ * fileReservedTime: 10,
36
+ * instanceName: "acc-test-rocketmq",
37
+ * instanceDescription: "acc-test",
38
+ * projectName: "default",
39
+ * chargeInfo: {
40
+ * chargeType: "PostPaid",
41
+ * },
42
+ * tags: [{
43
+ * key: "k1",
44
+ * value: "v1",
45
+ * }],
46
+ * });
47
+ * const fooAddress = new volcengine.eip.Address("fooAddress", {
48
+ * billingType: "PostPaidByBandwidth",
49
+ * bandwidth: 1,
50
+ * isp: "BGP",
51
+ * description: "acc-test",
52
+ * projectName: "default",
53
+ * });
54
+ * const fooRocketMQPublicAddress = new volcengine.rocketmq.RocketMQPublicAddress("fooRocketMQPublicAddress", {
55
+ * instanceId: fooRocketMQInstance.id,
56
+ * eipId: fooAddress.id,
57
+ * sslMode: "permissive",
58
+ * });
59
+ * ```
60
+ *
61
+ * ## Import
62
+ *
63
+ * RocketmqPublicAddress can be imported using the instance_id:eip_id, e.g.
64
+ *
65
+ * ```sh
66
+ * $ pulumi import volcengine:rocketmq/rocketMQPublicAddress:RocketMQPublicAddress default resource_id
67
+ * ```
68
+ */
69
+ class RocketMQPublicAddress extends pulumi.CustomResource {
70
+ /**
71
+ * Get an existing RocketMQPublicAddress 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, id, state, opts) {
80
+ return new RocketMQPublicAddress(name, state, Object.assign(Object.assign({}, opts), { id: id }));
81
+ }
82
+ /**
83
+ * Returns true if the given object is an instance of RocketMQPublicAddress. 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) {
87
+ if (obj === undefined || obj === null) {
88
+ return false;
89
+ }
90
+ return obj['__pulumiType'] === RocketMQPublicAddress.__pulumiType;
91
+ }
92
+ constructor(name, argsOrState, opts) {
93
+ let resourceInputs = {};
94
+ opts = opts || {};
95
+ if (opts.id) {
96
+ const state = argsOrState;
97
+ resourceInputs["eipId"] = state ? state.eipId : undefined;
98
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
99
+ resourceInputs["sslMode"] = state ? state.sslMode : undefined;
100
+ }
101
+ else {
102
+ const args = argsOrState;
103
+ if ((!args || args.eipId === undefined) && !opts.urn) {
104
+ throw new Error("Missing required property 'eipId'");
105
+ }
106
+ if ((!args || args.instanceId === undefined) && !opts.urn) {
107
+ throw new Error("Missing required property 'instanceId'");
108
+ }
109
+ resourceInputs["eipId"] = args ? args.eipId : undefined;
110
+ resourceInputs["instanceId"] = args ? args.instanceId : undefined;
111
+ resourceInputs["sslMode"] = args ? args.sslMode : undefined;
112
+ }
113
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
114
+ super(RocketMQPublicAddress.__pulumiType, name, resourceInputs, opts);
115
+ }
116
+ }
117
+ exports.RocketMQPublicAddress = RocketMQPublicAddress;
118
+ /** @internal */
119
+ RocketMQPublicAddress.__pulumiType = 'volcengine:rocketmq/rocketMQPublicAddress:RocketMQPublicAddress';
120
+ //# sourceMappingURL=rocketMQPublicAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rocketMQPublicAddress.js","sourceRoot":"","sources":["../../rocketmq/rocketMQPublicAddress.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;aAAM;YACH,MAAM,IAAI,GAAG,WAAoD,CAAC;YAClE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAvEL,sDAwEC;AA1DG,gBAAgB;AACO,kCAAY,GAAG,iEAAiE,CAAC"}
@@ -0,0 +1,191 @@
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 rocketmq topic
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as volcengine from "@pulumi/volcengine";
11
+ * import * as volcengine from "@volcengine/pulumi";
12
+ *
13
+ * const fooZones = volcengine.ecs.Zones({});
14
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
15
+ * vpcName: "acc-test-vpc",
16
+ * cidrBlock: "172.16.0.0/16",
17
+ * });
18
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
19
+ * subnetName: "acc-test-subnet",
20
+ * cidrBlock: "172.16.0.0/24",
21
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
22
+ * vpcId: fooVpc.id,
23
+ * });
24
+ * const fooRocketMQInstance = new volcengine.rocketmq.RocketMQInstance("fooRocketMQInstance", {
25
+ * zoneIds: [fooZones.then(fooZones => fooZones.zones?.[0]?.id)],
26
+ * subnetId: fooSubnet.id,
27
+ * version: "4.8",
28
+ * computeSpec: "rocketmq.n1.x2.micro",
29
+ * storageSpace: 300,
30
+ * autoScaleQueue: true,
31
+ * fileReservedTime: 10,
32
+ * instanceName: "acc-test-rocketmq",
33
+ * instanceDescription: "acc-test",
34
+ * projectName: "default",
35
+ * chargeInfo: {
36
+ * chargeType: "PostPaid",
37
+ * },
38
+ * tags: [{
39
+ * key: "k1",
40
+ * value: "v1",
41
+ * }],
42
+ * });
43
+ * const fooRocketMQAccessKey = new volcengine.rocketmq.RocketMQAccessKey("fooRocketMQAccessKey", {
44
+ * instanceId: fooRocketMQInstance.id,
45
+ * description: "acc-test-key",
46
+ * allAuthority: "SUB",
47
+ * });
48
+ * const fooRocketMQTopic = new volcengine.rocketmq.RocketMQTopic("fooRocketMQTopic", {
49
+ * instanceId: fooRocketMQInstance.id,
50
+ * topicName: "acc-test-rocketmq-topic",
51
+ * description: "acc-test",
52
+ * queueNumber: 2,
53
+ * messageType: 1,
54
+ * accessPolicies: [{
55
+ * accessKey: fooRocketMQAccessKey.accessKey,
56
+ * authority: "PUB",
57
+ * }],
58
+ * });
59
+ * ```
60
+ *
61
+ * ## Import
62
+ *
63
+ * RocketmqTopic can be imported using the instance_id:topic_name, e.g.
64
+ *
65
+ * ```sh
66
+ * $ pulumi import volcengine:rocketmq/rocketMQTopic:RocketMQTopic default resource_id
67
+ * ```
68
+ */
69
+ export declare class RocketMQTopic extends pulumi.CustomResource {
70
+ /**
71
+ * Get an existing RocketMQTopic 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?: RocketMQTopicState, opts?: pulumi.CustomResourceOptions): RocketMQTopic;
80
+ /**
81
+ * Returns true if the given object is an instance of RocketMQTopic. 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 RocketMQTopic;
85
+ /**
86
+ * The access policies of the rocketmq topic. This field can only be added or modified. Deleting this field is invalid.
87
+ */
88
+ readonly accessPolicies: pulumi.Output<outputs.rocketmq.RocketMQTopicAccessPolicy[]>;
89
+ /**
90
+ * The description of the rocketmq topic.
91
+ */
92
+ readonly description: pulumi.Output<string | undefined>;
93
+ /**
94
+ * The groups information of the rocketmq topic.
95
+ */
96
+ readonly groups: pulumi.Output<outputs.rocketmq.RocketMQTopicGroup[]>;
97
+ /**
98
+ * The id of rocketmq instance.
99
+ */
100
+ readonly instanceId: pulumi.Output<string>;
101
+ /**
102
+ * The type of the message. Valid values: `0`: Regular message, `1`: Transaction message, `2`: Partition order message, `3`: Global sequential message, `4`: Delay message.
103
+ */
104
+ readonly messageType: pulumi.Output<number>;
105
+ /**
106
+ * The maximum number of queues for the current topic, which cannot exceed the remaining available queues for the current rocketmq instance.
107
+ */
108
+ readonly queueNumber: pulumi.Output<number>;
109
+ /**
110
+ * The queues information of the rocketmq topic.
111
+ */
112
+ readonly queues: pulumi.Output<outputs.rocketmq.RocketMQTopicQueue[]>;
113
+ /**
114
+ * The name of the rocketmq topic.
115
+ */
116
+ readonly topicName: pulumi.Output<string>;
117
+ /**
118
+ * Create a RocketMQTopic resource with the given unique name, arguments, and options.
119
+ *
120
+ * @param name The _unique_ name of the resource.
121
+ * @param args The arguments to use to populate this resource's properties.
122
+ * @param opts A bag of options that control this resource's behavior.
123
+ */
124
+ constructor(name: string, args: RocketMQTopicArgs, opts?: pulumi.CustomResourceOptions);
125
+ }
126
+ /**
127
+ * Input properties used for looking up and filtering RocketMQTopic resources.
128
+ */
129
+ export interface RocketMQTopicState {
130
+ /**
131
+ * The access policies of the rocketmq topic. This field can only be added or modified. Deleting this field is invalid.
132
+ */
133
+ accessPolicies?: pulumi.Input<pulumi.Input<inputs.rocketmq.RocketMQTopicAccessPolicy>[]>;
134
+ /**
135
+ * The description of the rocketmq topic.
136
+ */
137
+ description?: pulumi.Input<string>;
138
+ /**
139
+ * The groups information of the rocketmq topic.
140
+ */
141
+ groups?: pulumi.Input<pulumi.Input<inputs.rocketmq.RocketMQTopicGroup>[]>;
142
+ /**
143
+ * The id of rocketmq instance.
144
+ */
145
+ instanceId?: pulumi.Input<string>;
146
+ /**
147
+ * The type of the message. Valid values: `0`: Regular message, `1`: Transaction message, `2`: Partition order message, `3`: Global sequential message, `4`: Delay message.
148
+ */
149
+ messageType?: pulumi.Input<number>;
150
+ /**
151
+ * The maximum number of queues for the current topic, which cannot exceed the remaining available queues for the current rocketmq instance.
152
+ */
153
+ queueNumber?: pulumi.Input<number>;
154
+ /**
155
+ * The queues information of the rocketmq topic.
156
+ */
157
+ queues?: pulumi.Input<pulumi.Input<inputs.rocketmq.RocketMQTopicQueue>[]>;
158
+ /**
159
+ * The name of the rocketmq topic.
160
+ */
161
+ topicName?: pulumi.Input<string>;
162
+ }
163
+ /**
164
+ * The set of arguments for constructing a RocketMQTopic resource.
165
+ */
166
+ export interface RocketMQTopicArgs {
167
+ /**
168
+ * The access policies of the rocketmq topic. This field can only be added or modified. Deleting this field is invalid.
169
+ */
170
+ accessPolicies?: pulumi.Input<pulumi.Input<inputs.rocketmq.RocketMQTopicAccessPolicy>[]>;
171
+ /**
172
+ * The description of the rocketmq topic.
173
+ */
174
+ description?: pulumi.Input<string>;
175
+ /**
176
+ * The id of rocketmq instance.
177
+ */
178
+ instanceId: pulumi.Input<string>;
179
+ /**
180
+ * The type of the message. Valid values: `0`: Regular message, `1`: Transaction message, `2`: Partition order message, `3`: Global sequential message, `4`: Delay message.
181
+ */
182
+ messageType: pulumi.Input<number>;
183
+ /**
184
+ * The maximum number of queues for the current topic, which cannot exceed the remaining available queues for the current rocketmq instance.
185
+ */
186
+ queueNumber: pulumi.Input<number>;
187
+ /**
188
+ * The name of the rocketmq topic.
189
+ */
190
+ topicName: pulumi.Input<string>;
191
+ }
@@ -0,0 +1,140 @@
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.RocketMQTopic = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage rocketmq topic
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ * import * as volcengine from "@volcengine/pulumi";
16
+ *
17
+ * const fooZones = volcengine.ecs.Zones({});
18
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
19
+ * vpcName: "acc-test-vpc",
20
+ * cidrBlock: "172.16.0.0/16",
21
+ * });
22
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
23
+ * subnetName: "acc-test-subnet",
24
+ * cidrBlock: "172.16.0.0/24",
25
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
26
+ * vpcId: fooVpc.id,
27
+ * });
28
+ * const fooRocketMQInstance = new volcengine.rocketmq.RocketMQInstance("fooRocketMQInstance", {
29
+ * zoneIds: [fooZones.then(fooZones => fooZones.zones?.[0]?.id)],
30
+ * subnetId: fooSubnet.id,
31
+ * version: "4.8",
32
+ * computeSpec: "rocketmq.n1.x2.micro",
33
+ * storageSpace: 300,
34
+ * autoScaleQueue: true,
35
+ * fileReservedTime: 10,
36
+ * instanceName: "acc-test-rocketmq",
37
+ * instanceDescription: "acc-test",
38
+ * projectName: "default",
39
+ * chargeInfo: {
40
+ * chargeType: "PostPaid",
41
+ * },
42
+ * tags: [{
43
+ * key: "k1",
44
+ * value: "v1",
45
+ * }],
46
+ * });
47
+ * const fooRocketMQAccessKey = new volcengine.rocketmq.RocketMQAccessKey("fooRocketMQAccessKey", {
48
+ * instanceId: fooRocketMQInstance.id,
49
+ * description: "acc-test-key",
50
+ * allAuthority: "SUB",
51
+ * });
52
+ * const fooRocketMQTopic = new volcengine.rocketmq.RocketMQTopic("fooRocketMQTopic", {
53
+ * instanceId: fooRocketMQInstance.id,
54
+ * topicName: "acc-test-rocketmq-topic",
55
+ * description: "acc-test",
56
+ * queueNumber: 2,
57
+ * messageType: 1,
58
+ * accessPolicies: [{
59
+ * accessKey: fooRocketMQAccessKey.accessKey,
60
+ * authority: "PUB",
61
+ * }],
62
+ * });
63
+ * ```
64
+ *
65
+ * ## Import
66
+ *
67
+ * RocketmqTopic can be imported using the instance_id:topic_name, e.g.
68
+ *
69
+ * ```sh
70
+ * $ pulumi import volcengine:rocketmq/rocketMQTopic:RocketMQTopic default resource_id
71
+ * ```
72
+ */
73
+ class RocketMQTopic extends pulumi.CustomResource {
74
+ /**
75
+ * Get an existing RocketMQTopic 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 RocketMQTopic(name, state, Object.assign(Object.assign({}, opts), { id: id }));
85
+ }
86
+ /**
87
+ * Returns true if the given object is an instance of RocketMQTopic. 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'] === RocketMQTopic.__pulumiType;
95
+ }
96
+ constructor(name, argsOrState, opts) {
97
+ let resourceInputs = {};
98
+ opts = opts || {};
99
+ if (opts.id) {
100
+ const state = argsOrState;
101
+ resourceInputs["accessPolicies"] = state ? state.accessPolicies : undefined;
102
+ resourceInputs["description"] = state ? state.description : undefined;
103
+ resourceInputs["groups"] = state ? state.groups : undefined;
104
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
105
+ resourceInputs["messageType"] = state ? state.messageType : undefined;
106
+ resourceInputs["queueNumber"] = state ? state.queueNumber : undefined;
107
+ resourceInputs["queues"] = state ? state.queues : undefined;
108
+ resourceInputs["topicName"] = state ? state.topicName : undefined;
109
+ }
110
+ else {
111
+ const args = argsOrState;
112
+ if ((!args || args.instanceId === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'instanceId'");
114
+ }
115
+ if ((!args || args.messageType === undefined) && !opts.urn) {
116
+ throw new Error("Missing required property 'messageType'");
117
+ }
118
+ if ((!args || args.queueNumber === undefined) && !opts.urn) {
119
+ throw new Error("Missing required property 'queueNumber'");
120
+ }
121
+ if ((!args || args.topicName === undefined) && !opts.urn) {
122
+ throw new Error("Missing required property 'topicName'");
123
+ }
124
+ resourceInputs["accessPolicies"] = args ? args.accessPolicies : undefined;
125
+ resourceInputs["description"] = args ? args.description : undefined;
126
+ resourceInputs["instanceId"] = args ? args.instanceId : undefined;
127
+ resourceInputs["messageType"] = args ? args.messageType : undefined;
128
+ resourceInputs["queueNumber"] = args ? args.queueNumber : undefined;
129
+ resourceInputs["topicName"] = args ? args.topicName : undefined;
130
+ resourceInputs["groups"] = undefined /*out*/;
131
+ resourceInputs["queues"] = undefined /*out*/;
132
+ }
133
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
134
+ super(RocketMQTopic.__pulumiType, name, resourceInputs, opts);
135
+ }
136
+ }
137
+ exports.RocketMQTopic = RocketMQTopic;
138
+ /** @internal */
139
+ RocketMQTopic.__pulumiType = 'volcengine:rocketmq/rocketMQTopic:RocketMQTopic';
140
+ //# sourceMappingURL=rocketMQTopic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rocketMQTopic.js","sourceRoot":"","sources":["../../rocketmq/rocketMQTopic.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,121 @@
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 rocketmq topics
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.rocketmq.Topics({
12
+ * instanceId: "rocketmq-cnoeea6b32118fc2",
13
+ * });
14
+ * ```
15
+ */
16
+ export declare function topics(args: TopicsArgs, opts?: pulumi.InvokeOptions): Promise<TopicsResult>;
17
+ /**
18
+ * A collection of arguments for invoking Topics.
19
+ */
20
+ export interface TopicsArgs {
21
+ /**
22
+ * The id of rocketmq instance.
23
+ */
24
+ instanceId: string;
25
+ /**
26
+ * The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows:
27
+ * 0: Regular message
28
+ * 1: Transaction message
29
+ * 2: Partition order message
30
+ * 3: Global sequential message
31
+ * 4: Delay message.
32
+ */
33
+ messageType?: number;
34
+ /**
35
+ * A Name Regex of Resource.
36
+ */
37
+ nameRegex?: string;
38
+ /**
39
+ * File name where to save data source results.
40
+ */
41
+ outputFile?: string;
42
+ /**
43
+ * The name of the rocketmq topic. This field support fuzzy query.
44
+ */
45
+ topicName?: string;
46
+ }
47
+ /**
48
+ * A collection of values returned by Topics.
49
+ */
50
+ export interface TopicsResult {
51
+ /**
52
+ * The provider-assigned unique ID for this managed resource.
53
+ */
54
+ readonly id: string;
55
+ /**
56
+ * The id of rocketmq instance.
57
+ */
58
+ readonly instanceId: string;
59
+ /**
60
+ * The type of the rocketmq message.
61
+ */
62
+ readonly messageType?: number;
63
+ readonly nameRegex?: string;
64
+ readonly outputFile?: string;
65
+ /**
66
+ * The collection of query.
67
+ */
68
+ readonly rocketmqTopics: outputs.rocketmq.TopicsRocketmqTopic[];
69
+ /**
70
+ * The name of the rocketmq topic.
71
+ */
72
+ readonly topicName?: string;
73
+ /**
74
+ * The total count of query.
75
+ */
76
+ readonly totalCount: number;
77
+ }
78
+ /**
79
+ * Use this data source to query detailed information of rocketmq topics
80
+ * ## Example Usage
81
+ *
82
+ * ```typescript
83
+ * import * as pulumi from "@pulumi/pulumi";
84
+ * import * as volcengine from "@pulumi/volcengine";
85
+ *
86
+ * const foo = volcengine.rocketmq.Topics({
87
+ * instanceId: "rocketmq-cnoeea6b32118fc2",
88
+ * });
89
+ * ```
90
+ */
91
+ export declare function topicsOutput(args: TopicsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<TopicsResult>;
92
+ /**
93
+ * A collection of arguments for invoking Topics.
94
+ */
95
+ export interface TopicsOutputArgs {
96
+ /**
97
+ * The id of rocketmq instance.
98
+ */
99
+ instanceId: pulumi.Input<string>;
100
+ /**
101
+ * The type of the rocketmq message. Setting this parameter means filtering the Topic list based on the specified message type. The value explanation is as follows:
102
+ * 0: Regular message
103
+ * 1: Transaction message
104
+ * 2: Partition order message
105
+ * 3: Global sequential message
106
+ * 4: Delay message.
107
+ */
108
+ messageType?: pulumi.Input<number>;
109
+ /**
110
+ * A Name Regex of Resource.
111
+ */
112
+ nameRegex?: pulumi.Input<string>;
113
+ /**
114
+ * File name where to save data source results.
115
+ */
116
+ outputFile?: pulumi.Input<string>;
117
+ /**
118
+ * The name of the rocketmq topic. This field support fuzzy query.
119
+ */
120
+ topicName?: pulumi.Input<string>;
121
+ }
@@ -0,0 +1,49 @@
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.topicsOutput = exports.topics = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of rocketmq topics
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.rocketmq.Topics({
17
+ * instanceId: "rocketmq-cnoeea6b32118fc2",
18
+ * });
19
+ * ```
20
+ */
21
+ function topics(args, opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invoke("volcengine:rocketmq/topics:Topics", {
24
+ "instanceId": args.instanceId,
25
+ "messageType": args.messageType,
26
+ "nameRegex": args.nameRegex,
27
+ "outputFile": args.outputFile,
28
+ "topicName": args.topicName,
29
+ }, opts);
30
+ }
31
+ exports.topics = topics;
32
+ /**
33
+ * Use this data source to query detailed information of rocketmq topics
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as volcengine from "@pulumi/volcengine";
39
+ *
40
+ * const foo = volcengine.rocketmq.Topics({
41
+ * instanceId: "rocketmq-cnoeea6b32118fc2",
42
+ * });
43
+ * ```
44
+ */
45
+ function topicsOutput(args, opts) {
46
+ return pulumi.output(args).apply((a) => topics(a, opts));
47
+ }
48
+ exports.topicsOutput = topicsOutput;
49
+ //# sourceMappingURL=topics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topics.js","sourceRoot":"","sources":["../../rocketmq/topics.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,SAAgB,MAAM,CAAC,IAAgB,EAAE,IAA2B;IAEhE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,wBAUC;AAgED;;;;;;;;;;;;GAYG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,oCAEC"}