@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 @@
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../../mongodb/account.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,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,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AApGL,0BAqGC;AAvFG,gBAAgB;AACO,oBAAY,GAAG,oCAAoC,CAAC"}
@@ -19,11 +19,15 @@ export declare function accounts(args: AccountsArgs, opts?: pulumi.InvokeOptions
19
19
  */
20
20
  export interface AccountsArgs {
21
21
  /**
22
- * The name of account, current support only `root`.
22
+ * The name of account. This field support fuzzy query.
23
23
  */
24
24
  accountName?: string;
25
25
  /**
26
- * Target query mongo instance id.
26
+ * The database of account. This field support fuzzy query.
27
+ */
28
+ authDb?: string;
29
+ /**
30
+ * Target query mongodb instance id.
27
31
  */
28
32
  instanceId: string;
29
33
  /**
@@ -43,6 +47,10 @@ export interface AccountsResult {
43
47
  * The collection of accounts query.
44
48
  */
45
49
  readonly accounts: outputs.mongodb.AccountsAccount[];
50
+ /**
51
+ * The database of account.
52
+ */
53
+ readonly authDb?: string;
46
54
  /**
47
55
  * The provider-assigned unique ID for this managed resource.
48
56
  */
@@ -73,11 +81,15 @@ export declare function accountsOutput(args: AccountsOutputArgs, opts?: pulumi.I
73
81
  */
74
82
  export interface AccountsOutputArgs {
75
83
  /**
76
- * The name of account, current support only `root`.
84
+ * The name of account. This field support fuzzy query.
77
85
  */
78
86
  accountName?: pulumi.Input<string>;
79
87
  /**
80
- * Target query mongo instance id.
88
+ * The database of account. This field support fuzzy query.
89
+ */
90
+ authDb?: pulumi.Input<string>;
91
+ /**
92
+ * Target query mongodb instance id.
81
93
  */
82
94
  instanceId: pulumi.Input<string>;
83
95
  /**
@@ -22,6 +22,7 @@ function accounts(args, opts) {
22
22
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
23
  return pulumi.runtime.invoke("volcengine:mongodb/accounts:Accounts", {
24
24
  "accountName": args.accountName,
25
+ "authDb": args.authDb,
25
26
  "instanceId": args.instanceId,
26
27
  "outputFile": args.outputFile,
27
28
  }, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../mongodb/accounts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IAEpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4BAQC;AA2CD;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
1
+ {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../mongodb/accounts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IAEpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4BASC;AAmDD;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
@@ -123,7 +123,7 @@ export declare class Endpoint extends pulumi.CustomResource {
123
123
  */
124
124
  readonly mongosNodeIds: pulumi.Output<string[] | undefined>;
125
125
  /**
126
- * The network type of endpoint.
126
+ * The network type of endpoint. Valid values: `Private`, `Public`. Default is `Private`.
127
127
  */
128
128
  readonly networkType: pulumi.Output<string | undefined>;
129
129
  /**
@@ -160,7 +160,7 @@ export interface EndpointState {
160
160
  */
161
161
  mongosNodeIds?: pulumi.Input<pulumi.Input<string>[]>;
162
162
  /**
163
- * The network type of endpoint.
163
+ * The network type of endpoint. Valid values: `Private`, `Public`. Default is `Private`.
164
164
  */
165
165
  networkType?: pulumi.Input<string>;
166
166
  /**
@@ -185,7 +185,7 @@ export interface EndpointArgs {
185
185
  */
186
186
  mongosNodeIds?: pulumi.Input<pulumi.Input<string>[]>;
187
187
  /**
188
- * The network type of endpoint.
188
+ * The network type of endpoint. Valid values: `Private`, `Public`. Default is `Private`.
189
189
  */
190
190
  networkType?: pulumi.Input<string>;
191
191
  /**
@@ -1,3 +1,6 @@
1
+ export { AccountArgs, AccountState } from "./account";
2
+ export type Account = import("./account").Account;
3
+ export declare const Account: typeof import("./account").Account;
1
4
  export { AccountsArgs, AccountsResult, AccountsOutputArgs } from "./accounts";
2
5
  export declare const accounts: typeof import("./accounts").accounts;
3
6
  export declare const accountsOutput: typeof import("./accounts").accountsOutput;
package/mongodb/index.js CHANGED
@@ -2,9 +2,11 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.zonesOutput = exports.zones = exports.sslStatesOutput = exports.sslStates = exports.SslState = exports.specsOutput = exports.specs = exports.regionsOutput = exports.regions = exports.mongoAllowListsOutput = exports.mongoAllowLists = exports.MongoAllowListAssociate = exports.MongoAllowList = exports.instancesOutput = exports.instances = exports.instanceParametersOutput = exports.instanceParameters = exports.instanceParameterLogsOutput = exports.instanceParameterLogs = exports.InstanceParameter = exports.Instance = exports.endpointsOutput = exports.endpoints = exports.Endpoint = exports.accountsOutput = exports.accounts = void 0;
5
+ exports.zonesOutput = exports.zones = exports.sslStatesOutput = exports.sslStates = exports.SslState = exports.specsOutput = exports.specs = exports.regionsOutput = exports.regions = exports.mongoAllowListsOutput = exports.mongoAllowLists = exports.MongoAllowListAssociate = exports.MongoAllowList = exports.instancesOutput = exports.instances = exports.instanceParametersOutput = exports.instanceParameters = exports.instanceParameterLogsOutput = exports.instanceParameterLogs = exports.InstanceParameter = exports.Instance = exports.endpointsOutput = exports.endpoints = exports.Endpoint = exports.accountsOutput = exports.accounts = exports.Account = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
+ exports.Account = null;
9
+ utilities.lazyLoad(exports, ["Account"], () => require("./account"));
8
10
  exports.accounts = null;
9
11
  exports.accountsOutput = null;
10
12
  utilities.lazyLoad(exports, ["accounts", "accountsOutput"], () => require("./accounts"));
@@ -51,6 +53,8 @@ const _module = {
51
53
  version: utilities.getVersion(),
52
54
  construct: (name, type, urn) => {
53
55
  switch (type) {
56
+ case "volcengine:mongodb/account:Account":
57
+ return new exports.Account(name, undefined, { urn });
54
58
  case "volcengine:mongodb/endpoint:Endpoint":
55
59
  return new exports.Endpoint(name, undefined, { urn });
56
60
  case "volcengine:mongodb/instance:Instance":
@@ -68,6 +72,7 @@ const _module = {
68
72
  }
69
73
  },
70
74
  };
75
+ pulumi.runtime.registerResourceModule("volcengine", "mongodb/account", _module);
71
76
  pulumi.runtime.registerResourceModule("volcengine", "mongodb/endpoint", _module);
72
77
  pulumi.runtime.registerResourceModule("volcengine", "mongodb/instance", _module);
73
78
  pulumi.runtime.registerResourceModule("volcengine", "mongodb/instanceParameter", _module);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../mongodb/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,EAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI3E,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CA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AC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AAC/E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,iCAAiC,EAAE,OAAO,CAAC,CAAA;AAC/F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
@@ -6,24 +6,49 @@ import * as outputs from "../types/output";
6
6
  *
7
7
  * ```typescript
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
9
10
  * import * as volcengine from "@volcengine/pulumi";
10
11
  *
11
- * const foo = new volcengine.mongodb.Instance("foo", {
12
- * chargeType: "PostPaid",
12
+ * const fooZones = volcengine.ecs.Zones({});
13
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
14
+ * vpcName: "acc-test-vpc",
15
+ * cidrBlock: "172.16.0.0/16",
16
+ * });
17
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
18
+ * subnetName: "acc-test-subnet",
19
+ * cidrBlock: "172.16.0.0/24",
20
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
21
+ * vpcId: fooVpc.id,
22
+ * });
23
+ * const fooInstance = new volcengine.mongodb.Instance("fooInstance", {
24
+ * zoneIds: [fooZones.then(fooZones => fooZones.zones?.[0]?.id)],
13
25
  * dbEngineVersion: "MongoDB_4_0",
14
- * instanceName: "mongo-replica-be9995d32e4a",
15
26
  * instanceType: "ReplicaSet",
16
27
  * nodeSpec: "mongo.2c4g",
17
- * projectName: "default",
18
28
  * storageSpaceGb: 20,
19
- * subnetId: "subnet-rrx4ns6abw1sv0x57wq6h47",
20
- * superAccountPassword: "******",
29
+ * subnetId: fooSubnet.id,
30
+ * instanceName: "acc-test-mongodb-replica",
31
+ * chargeType: "PostPaid",
32
+ * superAccountPassword: "93f0cb0614Aab12",
33
+ * projectName: "default",
21
34
  * tags: [{
22
35
  * key: "k1",
23
36
  * value: "v1",
24
37
  * }],
25
- * zoneId: "cn-beijing-a",
38
+ * nodeAvailabilityZones: [{
39
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
40
+ * nodeNumber: 2,
41
+ * }],
26
42
  * });
43
+ * // period_unit = "Month"
44
+ * // period = 1
45
+ * // auto_renew = false
46
+ * // ssl_action = "Close"
47
+ * // lifecycle {
48
+ * // ignore_changes = [
49
+ * // super_account_password,
50
+ * // ]
51
+ * // }
27
52
  * ```
28
53
  *
29
54
  * ## Import
@@ -51,11 +76,11 @@ export declare class Instance extends pulumi.CustomResource {
51
76
  */
52
77
  static isInstance(obj: any): obj is Instance;
53
78
  /**
54
- * Whether to enable automatic renewal.
79
+ * Whether to enable automatic renewal. This parameter is required when the `ChargeType` is `Prepaid`.
55
80
  */
56
81
  readonly autoRenew: pulumi.Output<boolean>;
57
82
  /**
58
- * The charge type of instance, valid value contains `Prepaid` or `PostPaid`.
83
+ * The charge type of instance, valid value contains `Prepaid` or `PostPaid`. Default is `PostPaid`.
59
84
  */
60
85
  readonly chargeType: pulumi.Output<string>;
61
86
  /**
@@ -63,7 +88,7 @@ export declare class Instance extends pulumi.CustomResource {
63
88
  */
64
89
  readonly configServersId: pulumi.Output<string>;
65
90
  /**
66
- * The version of db engine, valid value contains `MongoDB_4_0`, `MongoDB_5_0`.
91
+ * The version of db engine, valid value contains `MongoDB_4_0`, `MongoDB_4_2`, `MongoDB_4_4`, `MongoDB_5_0`, `MongoDB_6_0`.
67
92
  */
68
93
  readonly dbEngineVersion: pulumi.Output<string>;
69
94
  /**
@@ -71,7 +96,7 @@ export declare class Instance extends pulumi.CustomResource {
71
96
  */
72
97
  readonly instanceName: pulumi.Output<string>;
73
98
  /**
74
- * The type of instance,the valid value contains `ReplicaSet` or `ShardedCluster`.
99
+ * The type of instance, the valid value contains `ReplicaSet` or `ShardedCluster`. Default is `ReplicaSet`.
75
100
  */
76
101
  readonly instanceType: pulumi.Output<string>;
77
102
  /**
@@ -83,31 +108,43 @@ export declare class Instance extends pulumi.CustomResource {
83
108
  */
84
109
  readonly mongosId: pulumi.Output<string>;
85
110
  /**
86
- * The mongos node number of shard cluster,value range is `2~23`, this parameter is required when `InstanceType` is `ShardedCluster`.
111
+ * The mongos node number of shard cluster, value range is `2~23`, this parameter is required when the `InstanceType` is `ShardedCluster`.
87
112
  */
88
113
  readonly mongosNodeNumber: pulumi.Output<number | undefined>;
89
114
  /**
90
- * The mongos node spec of shard cluster, this parameter is required when `InstanceType` is `ShardedCluster`.
115
+ * The mongos node spec of shard cluster, this parameter is required when the `InstanceType` is `ShardedCluster`.
91
116
  */
92
117
  readonly mongosNodeSpec: pulumi.Output<string | undefined>;
93
118
  /**
94
- * The spec of node.
119
+ * The readonly node of the instance. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
120
+ */
121
+ readonly nodeAvailabilityZones: pulumi.Output<outputs.mongodb.InstanceNodeAvailabilityZone[] | undefined>;
122
+ /**
123
+ * The spec of node. When the instanceType is ReplicaSet, this parameter represents the computing node specification of the replica set instance. When the instanceType is ShardedCluster, this parameter represents the specification of the Shard node.
95
124
  */
96
125
  readonly nodeSpec: pulumi.Output<string>;
97
126
  /**
98
- * The instance purchase duration,the value range is `1~3` when `PeriodUtil` is `Year`, the value range is `1~9` when `PeriodUtil` is `Month`, this parameter is required when `ChargeType` is `Prepaid`.
127
+ * The instance purchase duration, the value range is `1~3` when `PeriodUtil` is `Year`, the value range is `1~9` when `PeriodUtil` is `Month`. This parameter is required when the `ChargeType` is `Prepaid`.
99
128
  */
100
129
  readonly period: pulumi.Output<number>;
101
130
  /**
102
- * The period unit,valid value contains `Year` or `Month`, this parameter is required when `ChargeType` is `Prepaid`.
131
+ * The period unit, valid value contains `Year` or `Month`. This parameter is required when the `ChargeType` is `Prepaid`.
103
132
  */
104
133
  readonly periodUnit: pulumi.Output<string>;
134
+ /**
135
+ * The private endpoint address of instance.
136
+ */
137
+ readonly privateEndpoint: pulumi.Output<string>;
105
138
  /**
106
139
  * The project name to which the instance belongs.
107
140
  */
108
141
  readonly projectName: pulumi.Output<string>;
109
142
  /**
110
- * The number of shards in shard cluster,value range is `2~32`, this parameter is required when `InstanceType` is `ShardedCluster`.
143
+ * The number of readonly node in instance.
144
+ */
145
+ readonly readOnlyNodeNumber: pulumi.Output<number>;
146
+ /**
147
+ * The number of shards in shard cluster, value range is `2~32`, this parameter is required when the `InstanceType` is `ShardedCluster`.
111
148
  */
112
149
  readonly shardNumber: pulumi.Output<number | undefined>;
113
150
  /**
@@ -115,7 +152,7 @@ export declare class Instance extends pulumi.CustomResource {
115
152
  */
116
153
  readonly shards: pulumi.Output<outputs.mongodb.InstanceShard[]>;
117
154
  /**
118
- * The total storage space of a replica set instance, or the storage space of a single shard in a sharded cluster, in GiB.
155
+ * The total storage space of a replica set instance, or the storage space of a single shard in a sharded cluster. Unit: GiB.
119
156
  */
120
157
  readonly storageSpaceGb: pulumi.Output<number>;
121
158
  /**
@@ -123,7 +160,7 @@ export declare class Instance extends pulumi.CustomResource {
123
160
  */
124
161
  readonly subnetId: pulumi.Output<string>;
125
162
  /**
126
- * The password of database account.
163
+ * The password of database account. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
127
164
  */
128
165
  readonly superAccountPassword: pulumi.Output<string | undefined>;
129
166
  /**
@@ -135,9 +172,15 @@ export declare class Instance extends pulumi.CustomResource {
135
172
  */
136
173
  readonly vpcId: pulumi.Output<string>;
137
174
  /**
138
- * The zone ID of instance.
175
+ * This field has been deprecated after version-0.0.156. Please use `zoneIds` to deploy multiple availability zones. The zone ID of instance.
176
+ *
177
+ * @deprecated This field has been deprecated after version-0.0.156. Please use `zoneIds` to deploy multiple availability zones.
139
178
  */
140
179
  readonly zoneId: pulumi.Output<string>;
180
+ /**
181
+ * The list of zone ids. If you need to deploy multiple availability zones for a newly created instance, you can specify three availability zone IDs at the same time. By default, the first available zone passed in is the primary available zone, and the two available zones passed in afterwards are the backup available zones.
182
+ */
183
+ readonly zoneIds: pulumi.Output<string[]>;
141
184
  /**
142
185
  * Create a Instance resource with the given unique name, arguments, and options.
143
186
  *
@@ -152,11 +195,11 @@ export declare class Instance extends pulumi.CustomResource {
152
195
  */
153
196
  export interface InstanceState {
154
197
  /**
155
- * Whether to enable automatic renewal.
198
+ * Whether to enable automatic renewal. This parameter is required when the `ChargeType` is `Prepaid`.
156
199
  */
157
200
  autoRenew?: pulumi.Input<boolean>;
158
201
  /**
159
- * The charge type of instance, valid value contains `Prepaid` or `PostPaid`.
202
+ * The charge type of instance, valid value contains `Prepaid` or `PostPaid`. Default is `PostPaid`.
160
203
  */
161
204
  chargeType?: pulumi.Input<string>;
162
205
  /**
@@ -164,7 +207,7 @@ export interface InstanceState {
164
207
  */
165
208
  configServersId?: pulumi.Input<string>;
166
209
  /**
167
- * The version of db engine, valid value contains `MongoDB_4_0`, `MongoDB_5_0`.
210
+ * The version of db engine, valid value contains `MongoDB_4_0`, `MongoDB_4_2`, `MongoDB_4_4`, `MongoDB_5_0`, `MongoDB_6_0`.
168
211
  */
169
212
  dbEngineVersion?: pulumi.Input<string>;
170
213
  /**
@@ -172,7 +215,7 @@ export interface InstanceState {
172
215
  */
173
216
  instanceName?: pulumi.Input<string>;
174
217
  /**
175
- * The type of instance,the valid value contains `ReplicaSet` or `ShardedCluster`.
218
+ * The type of instance, the valid value contains `ReplicaSet` or `ShardedCluster`. Default is `ReplicaSet`.
176
219
  */
177
220
  instanceType?: pulumi.Input<string>;
178
221
  /**
@@ -184,31 +227,43 @@ export interface InstanceState {
184
227
  */
185
228
  mongosId?: pulumi.Input<string>;
186
229
  /**
187
- * The mongos node number of shard cluster,value range is `2~23`, this parameter is required when `InstanceType` is `ShardedCluster`.
230
+ * The mongos node number of shard cluster, value range is `2~23`, this parameter is required when the `InstanceType` is `ShardedCluster`.
188
231
  */
189
232
  mongosNodeNumber?: pulumi.Input<number>;
190
233
  /**
191
- * The mongos node spec of shard cluster, this parameter is required when `InstanceType` is `ShardedCluster`.
234
+ * The mongos node spec of shard cluster, this parameter is required when the `InstanceType` is `ShardedCluster`.
192
235
  */
193
236
  mongosNodeSpec?: pulumi.Input<string>;
194
237
  /**
195
- * The spec of node.
238
+ * The readonly node of the instance. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
239
+ */
240
+ nodeAvailabilityZones?: pulumi.Input<pulumi.Input<inputs.mongodb.InstanceNodeAvailabilityZone>[]>;
241
+ /**
242
+ * The spec of node. When the instanceType is ReplicaSet, this parameter represents the computing node specification of the replica set instance. When the instanceType is ShardedCluster, this parameter represents the specification of the Shard node.
196
243
  */
197
244
  nodeSpec?: pulumi.Input<string>;
198
245
  /**
199
- * The instance purchase duration,the value range is `1~3` when `PeriodUtil` is `Year`, the value range is `1~9` when `PeriodUtil` is `Month`, this parameter is required when `ChargeType` is `Prepaid`.
246
+ * The instance purchase duration, the value range is `1~3` when `PeriodUtil` is `Year`, the value range is `1~9` when `PeriodUtil` is `Month`. This parameter is required when the `ChargeType` is `Prepaid`.
200
247
  */
201
248
  period?: pulumi.Input<number>;
202
249
  /**
203
- * The period unit,valid value contains `Year` or `Month`, this parameter is required when `ChargeType` is `Prepaid`.
250
+ * The period unit, valid value contains `Year` or `Month`. This parameter is required when the `ChargeType` is `Prepaid`.
204
251
  */
205
252
  periodUnit?: pulumi.Input<string>;
253
+ /**
254
+ * The private endpoint address of instance.
255
+ */
256
+ privateEndpoint?: pulumi.Input<string>;
206
257
  /**
207
258
  * The project name to which the instance belongs.
208
259
  */
209
260
  projectName?: pulumi.Input<string>;
210
261
  /**
211
- * The number of shards in shard cluster,value range is `2~32`, this parameter is required when `InstanceType` is `ShardedCluster`.
262
+ * The number of readonly node in instance.
263
+ */
264
+ readOnlyNodeNumber?: pulumi.Input<number>;
265
+ /**
266
+ * The number of shards in shard cluster, value range is `2~32`, this parameter is required when the `InstanceType` is `ShardedCluster`.
212
267
  */
213
268
  shardNumber?: pulumi.Input<number>;
214
269
  /**
@@ -216,7 +271,7 @@ export interface InstanceState {
216
271
  */
217
272
  shards?: pulumi.Input<pulumi.Input<inputs.mongodb.InstanceShard>[]>;
218
273
  /**
219
- * The total storage space of a replica set instance, or the storage space of a single shard in a sharded cluster, in GiB.
274
+ * The total storage space of a replica set instance, or the storage space of a single shard in a sharded cluster. Unit: GiB.
220
275
  */
221
276
  storageSpaceGb?: pulumi.Input<number>;
222
277
  /**
@@ -224,7 +279,7 @@ export interface InstanceState {
224
279
  */
225
280
  subnetId?: pulumi.Input<string>;
226
281
  /**
227
- * The password of database account.
282
+ * The password of database account. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
228
283
  */
229
284
  superAccountPassword?: pulumi.Input<string>;
230
285
  /**
@@ -236,24 +291,30 @@ export interface InstanceState {
236
291
  */
237
292
  vpcId?: pulumi.Input<string>;
238
293
  /**
239
- * The zone ID of instance.
294
+ * This field has been deprecated after version-0.0.156. Please use `zoneIds` to deploy multiple availability zones. The zone ID of instance.
295
+ *
296
+ * @deprecated This field has been deprecated after version-0.0.156. Please use `zoneIds` to deploy multiple availability zones.
240
297
  */
241
298
  zoneId?: pulumi.Input<string>;
299
+ /**
300
+ * The list of zone ids. If you need to deploy multiple availability zones for a newly created instance, you can specify three availability zone IDs at the same time. By default, the first available zone passed in is the primary available zone, and the two available zones passed in afterwards are the backup available zones.
301
+ */
302
+ zoneIds?: pulumi.Input<pulumi.Input<string>[]>;
242
303
  }
243
304
  /**
244
305
  * The set of arguments for constructing a Instance resource.
245
306
  */
246
307
  export interface InstanceArgs {
247
308
  /**
248
- * Whether to enable automatic renewal.
309
+ * Whether to enable automatic renewal. This parameter is required when the `ChargeType` is `Prepaid`.
249
310
  */
250
311
  autoRenew?: pulumi.Input<boolean>;
251
312
  /**
252
- * The charge type of instance, valid value contains `Prepaid` or `PostPaid`.
313
+ * The charge type of instance, valid value contains `Prepaid` or `PostPaid`. Default is `PostPaid`.
253
314
  */
254
315
  chargeType?: pulumi.Input<string>;
255
316
  /**
256
- * The version of db engine, valid value contains `MongoDB_4_0`, `MongoDB_5_0`.
317
+ * The version of db engine, valid value contains `MongoDB_4_0`, `MongoDB_4_2`, `MongoDB_4_4`, `MongoDB_5_0`, `MongoDB_6_0`.
257
318
  */
258
319
  dbEngineVersion?: pulumi.Input<string>;
259
320
  /**
@@ -261,27 +322,31 @@ export interface InstanceArgs {
261
322
  */
262
323
  instanceName?: pulumi.Input<string>;
263
324
  /**
264
- * The type of instance,the valid value contains `ReplicaSet` or `ShardedCluster`.
325
+ * The type of instance, the valid value contains `ReplicaSet` or `ShardedCluster`. Default is `ReplicaSet`.
265
326
  */
266
327
  instanceType?: pulumi.Input<string>;
267
328
  /**
268
- * The mongos node number of shard cluster,value range is `2~23`, this parameter is required when `InstanceType` is `ShardedCluster`.
329
+ * The mongos node number of shard cluster, value range is `2~23`, this parameter is required when the `InstanceType` is `ShardedCluster`.
269
330
  */
270
331
  mongosNodeNumber?: pulumi.Input<number>;
271
332
  /**
272
- * The mongos node spec of shard cluster, this parameter is required when `InstanceType` is `ShardedCluster`.
333
+ * The mongos node spec of shard cluster, this parameter is required when the `InstanceType` is `ShardedCluster`.
273
334
  */
274
335
  mongosNodeSpec?: pulumi.Input<string>;
275
336
  /**
276
- * The spec of node.
337
+ * The readonly node of the instance. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
338
+ */
339
+ nodeAvailabilityZones?: pulumi.Input<pulumi.Input<inputs.mongodb.InstanceNodeAvailabilityZone>[]>;
340
+ /**
341
+ * The spec of node. When the instanceType is ReplicaSet, this parameter represents the computing node specification of the replica set instance. When the instanceType is ShardedCluster, this parameter represents the specification of the Shard node.
277
342
  */
278
343
  nodeSpec: pulumi.Input<string>;
279
344
  /**
280
- * The instance purchase duration,the value range is `1~3` when `PeriodUtil` is `Year`, the value range is `1~9` when `PeriodUtil` is `Month`, this parameter is required when `ChargeType` is `Prepaid`.
345
+ * The instance purchase duration, the value range is `1~3` when `PeriodUtil` is `Year`, the value range is `1~9` when `PeriodUtil` is `Month`. This parameter is required when the `ChargeType` is `Prepaid`.
281
346
  */
282
347
  period?: pulumi.Input<number>;
283
348
  /**
284
- * The period unit,valid value contains `Year` or `Month`, this parameter is required when `ChargeType` is `Prepaid`.
349
+ * The period unit, valid value contains `Year` or `Month`. This parameter is required when the `ChargeType` is `Prepaid`.
285
350
  */
286
351
  periodUnit?: pulumi.Input<string>;
287
352
  /**
@@ -289,11 +354,11 @@ export interface InstanceArgs {
289
354
  */
290
355
  projectName?: pulumi.Input<string>;
291
356
  /**
292
- * The number of shards in shard cluster,value range is `2~32`, this parameter is required when `InstanceType` is `ShardedCluster`.
357
+ * The number of shards in shard cluster, value range is `2~32`, this parameter is required when the `InstanceType` is `ShardedCluster`.
293
358
  */
294
359
  shardNumber?: pulumi.Input<number>;
295
360
  /**
296
- * The total storage space of a replica set instance, or the storage space of a single shard in a sharded cluster, in GiB.
361
+ * The total storage space of a replica set instance, or the storage space of a single shard in a sharded cluster. Unit: GiB.
297
362
  */
298
363
  storageSpaceGb: pulumi.Input<number>;
299
364
  /**
@@ -301,7 +366,7 @@ export interface InstanceArgs {
301
366
  */
302
367
  subnetId: pulumi.Input<string>;
303
368
  /**
304
- * The password of database account.
369
+ * The password of database account. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
305
370
  */
306
371
  superAccountPassword?: pulumi.Input<string>;
307
372
  /**
@@ -313,7 +378,13 @@ export interface InstanceArgs {
313
378
  */
314
379
  vpcId?: pulumi.Input<string>;
315
380
  /**
316
- * The zone ID of instance.
381
+ * This field has been deprecated after version-0.0.156. Please use `zoneIds` to deploy multiple availability zones. The zone ID of instance.
382
+ *
383
+ * @deprecated This field has been deprecated after version-0.0.156. Please use `zoneIds` to deploy multiple availability zones.
317
384
  */
318
385
  zoneId?: pulumi.Input<string>;
386
+ /**
387
+ * The list of zone ids. If you need to deploy multiple availability zones for a newly created instance, you can specify three availability zone IDs at the same time. By default, the first available zone passed in is the primary available zone, and the two available zones passed in afterwards are the backup available zones.
388
+ */
389
+ zoneIds?: pulumi.Input<pulumi.Input<string>[]>;
319
390
  }
@@ -10,24 +10,49 @@ const utilities = require("../utilities");
10
10
  *
11
11
  * ```typescript
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as volcengine from "@pulumi/volcengine";
13
14
  * import * as volcengine from "@volcengine/pulumi";
14
15
  *
15
- * const foo = new volcengine.mongodb.Instance("foo", {
16
- * chargeType: "PostPaid",
16
+ * const fooZones = volcengine.ecs.Zones({});
17
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
18
+ * vpcName: "acc-test-vpc",
19
+ * cidrBlock: "172.16.0.0/16",
20
+ * });
21
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
22
+ * subnetName: "acc-test-subnet",
23
+ * cidrBlock: "172.16.0.0/24",
24
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
25
+ * vpcId: fooVpc.id,
26
+ * });
27
+ * const fooInstance = new volcengine.mongodb.Instance("fooInstance", {
28
+ * zoneIds: [fooZones.then(fooZones => fooZones.zones?.[0]?.id)],
17
29
  * dbEngineVersion: "MongoDB_4_0",
18
- * instanceName: "mongo-replica-be9995d32e4a",
19
30
  * instanceType: "ReplicaSet",
20
31
  * nodeSpec: "mongo.2c4g",
21
- * projectName: "default",
22
32
  * storageSpaceGb: 20,
23
- * subnetId: "subnet-rrx4ns6abw1sv0x57wq6h47",
24
- * superAccountPassword: "******",
33
+ * subnetId: fooSubnet.id,
34
+ * instanceName: "acc-test-mongodb-replica",
35
+ * chargeType: "PostPaid",
36
+ * superAccountPassword: "93f0cb0614Aab12",
37
+ * projectName: "default",
25
38
  * tags: [{
26
39
  * key: "k1",
27
40
  * value: "v1",
28
41
  * }],
29
- * zoneId: "cn-beijing-a",
42
+ * nodeAvailabilityZones: [{
43
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
44
+ * nodeNumber: 2,
45
+ * }],
30
46
  * });
47
+ * // period_unit = "Month"
48
+ * // period = 1
49
+ * // auto_renew = false
50
+ * // ssl_action = "Close"
51
+ * // lifecycle {
52
+ * // ignore_changes = [
53
+ * // super_account_password,
54
+ * // ]
55
+ * // }
31
56
  * ```
32
57
  *
33
58
  * ## Import
@@ -76,10 +101,13 @@ class Instance extends pulumi.CustomResource {
76
101
  resourceInputs["mongosId"] = state ? state.mongosId : undefined;
77
102
  resourceInputs["mongosNodeNumber"] = state ? state.mongosNodeNumber : undefined;
78
103
  resourceInputs["mongosNodeSpec"] = state ? state.mongosNodeSpec : undefined;
104
+ resourceInputs["nodeAvailabilityZones"] = state ? state.nodeAvailabilityZones : undefined;
79
105
  resourceInputs["nodeSpec"] = state ? state.nodeSpec : undefined;
80
106
  resourceInputs["period"] = state ? state.period : undefined;
81
107
  resourceInputs["periodUnit"] = state ? state.periodUnit : undefined;
108
+ resourceInputs["privateEndpoint"] = state ? state.privateEndpoint : undefined;
82
109
  resourceInputs["projectName"] = state ? state.projectName : undefined;
110
+ resourceInputs["readOnlyNodeNumber"] = state ? state.readOnlyNodeNumber : undefined;
83
111
  resourceInputs["shardNumber"] = state ? state.shardNumber : undefined;
84
112
  resourceInputs["shards"] = state ? state.shards : undefined;
85
113
  resourceInputs["storageSpaceGb"] = state ? state.storageSpaceGb : undefined;
@@ -88,6 +116,7 @@ class Instance extends pulumi.CustomResource {
88
116
  resourceInputs["tags"] = state ? state.tags : undefined;
89
117
  resourceInputs["vpcId"] = state ? state.vpcId : undefined;
90
118
  resourceInputs["zoneId"] = state ? state.zoneId : undefined;
119
+ resourceInputs["zoneIds"] = state ? state.zoneIds : undefined;
91
120
  }
92
121
  else {
93
122
  const args = argsOrState;
@@ -107,6 +136,7 @@ class Instance extends pulumi.CustomResource {
107
136
  resourceInputs["instanceType"] = args ? args.instanceType : undefined;
108
137
  resourceInputs["mongosNodeNumber"] = args ? args.mongosNodeNumber : undefined;
109
138
  resourceInputs["mongosNodeSpec"] = args ? args.mongosNodeSpec : undefined;
139
+ resourceInputs["nodeAvailabilityZones"] = args ? args.nodeAvailabilityZones : undefined;
110
140
  resourceInputs["nodeSpec"] = args ? args.nodeSpec : undefined;
111
141
  resourceInputs["period"] = args ? args.period : undefined;
112
142
  resourceInputs["periodUnit"] = args ? args.periodUnit : undefined;
@@ -118,9 +148,12 @@ class Instance extends pulumi.CustomResource {
118
148
  resourceInputs["tags"] = args ? args.tags : undefined;
119
149
  resourceInputs["vpcId"] = args ? args.vpcId : undefined;
120
150
  resourceInputs["zoneId"] = args ? args.zoneId : undefined;
151
+ resourceInputs["zoneIds"] = args ? args.zoneIds : undefined;
121
152
  resourceInputs["configServersId"] = undefined /*out*/;
122
153
  resourceInputs["mongos"] = undefined /*out*/;
123
154
  resourceInputs["mongosId"] = undefined /*out*/;
155
+ resourceInputs["privateEndpoint"] = undefined /*out*/;
156
+ resourceInputs["readOnlyNodeNumber"] = undefined /*out*/;
124
157
  resourceInputs["shards"] = undefined /*out*/;
125
158
  }
126
159
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);