@volcengine/pulumi 0.0.18 → 0.0.21

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 (263) hide show
  1. package/autoscaling/scalingConfiguration.d.ts +18 -0
  2. package/autoscaling/scalingConfiguration.js +2 -0
  3. package/autoscaling/scalingConfiguration.js.map +1 -1
  4. package/autoscaling/scalingGroup.d.ts +62 -4
  5. package/autoscaling/scalingGroup.js +11 -1
  6. package/autoscaling/scalingGroup.js.map +1 -1
  7. package/autoscaling/scalingGroups.d.ts +12 -0
  8. package/autoscaling/scalingGroups.js +1 -0
  9. package/autoscaling/scalingGroups.js.map +1 -1
  10. package/autoscaling/scalingLifecycleHook.d.ts +31 -6
  11. package/autoscaling/scalingLifecycleHook.js +16 -3
  12. package/autoscaling/scalingLifecycleHook.js.map +1 -1
  13. package/bioos/cluster.d.ts +11 -11
  14. package/bioos/cluster.js +6 -6
  15. package/bioos/cluster.js.map +1 -1
  16. package/bioos/clusters.d.ts +3 -0
  17. package/bioos/clusters.js.map +1 -1
  18. package/bioos/workspace.d.ts +1 -1
  19. package/cen/grantInstance.d.ts +1 -1
  20. package/cen/grantInstance.js +1 -1
  21. package/clb/acl.d.ts +1 -1
  22. package/clb/certificate.d.ts +1 -1
  23. package/clb/clb.d.ts +68 -18
  24. package/clb/clb.js +38 -17
  25. package/clb/clb.js.map +1 -1
  26. package/clb/listener.d.ts +101 -0
  27. package/clb/listener.js +26 -0
  28. package/clb/listener.js.map +1 -1
  29. package/clb/serverGroup.d.ts +12 -0
  30. package/clb/serverGroup.js +2 -0
  31. package/clb/serverGroup.js.map +1 -1
  32. package/direct_connect/bgpPeer.d.ts +175 -0
  33. package/direct_connect/bgpPeer.js +100 -0
  34. package/direct_connect/bgpPeer.js.map +1 -0
  35. package/direct_connect/bgpPeers.d.ts +129 -0
  36. package/direct_connect/bgpPeers.js +52 -0
  37. package/direct_connect/bgpPeers.js.map +1 -0
  38. package/direct_connect/connection.d.ts +217 -0
  39. package/direct_connect/connection.js +133 -0
  40. package/direct_connect/connection.js.map +1 -0
  41. package/direct_connect/connections.d.ts +154 -0
  42. package/direct_connect/connections.js +54 -0
  43. package/direct_connect/connections.js.map +1 -0
  44. package/direct_connect/gateway.d.ts +100 -0
  45. package/direct_connect/gateway.js +79 -0
  46. package/direct_connect/gateway.js.map +1 -0
  47. package/direct_connect/gatewayRoute.d.ts +143 -0
  48. package/direct_connect/gatewayRoute.js +97 -0
  49. package/direct_connect/gatewayRoute.js.map +1 -0
  50. package/direct_connect/gatewayRoutes.d.ts +141 -0
  51. package/direct_connect/gatewayRoutes.js +58 -0
  52. package/direct_connect/gatewayRoutes.js.map +1 -0
  53. package/direct_connect/gateways.d.ts +118 -0
  54. package/direct_connect/gateways.js +51 -0
  55. package/direct_connect/gateways.js.map +1 -0
  56. package/direct_connect/index.d.ts +30 -0
  57. package/direct_connect/index.js +57 -0
  58. package/direct_connect/index.js.map +1 -0
  59. package/direct_connect/virtualInterface.d.ts +263 -0
  60. package/direct_connect/virtualInterface.js +127 -0
  61. package/direct_connect/virtualInterface.js.map +1 -0
  62. package/direct_connect/virtualInterfaces.d.ts +178 -0
  63. package/direct_connect/virtualInterfaces.js +56 -0
  64. package/direct_connect/virtualInterfaces.js.map +1 -0
  65. package/ebs/volume.d.ts +1 -1
  66. package/ecs/availableResources.d.ts +114 -0
  67. package/ecs/availableResources.js +50 -0
  68. package/ecs/availableResources.js.map +1 -0
  69. package/ecs/index.d.ts +3 -0
  70. package/ecs/index.js +4 -1
  71. package/ecs/index.js.map +1 -1
  72. package/ecs/instance.d.ts +24 -3
  73. package/ecs/instance.js +2 -0
  74. package/ecs/instance.js.map +1 -1
  75. package/eip/address.d.ts +1 -1
  76. package/iam/index.d.ts +15 -0
  77. package/iam/index.js +22 -1
  78. package/iam/index.js.map +1 -1
  79. package/iam/userGroup.d.ts +95 -0
  80. package/iam/userGroup.js +79 -0
  81. package/iam/userGroup.js.map +1 -0
  82. package/iam/userGroupAttachment.d.ts +92 -0
  83. package/iam/userGroupAttachment.js +89 -0
  84. package/iam/userGroupAttachment.js.map +1 -0
  85. package/iam/userGroupPolicyAttachment.d.ts +105 -0
  86. package/iam/userGroupPolicyAttachment.js +95 -0
  87. package/iam/userGroupPolicyAttachment.js.map +1 -0
  88. package/iam/userGroupPolicyAttachments.d.ts +107 -0
  89. package/iam/userGroupPolicyAttachments.js +78 -0
  90. package/iam/userGroupPolicyAttachments.js.map +1 -0
  91. package/iam/userGroups.d.ts +87 -0
  92. package/iam/userGroups.js +59 -0
  93. package/iam/userGroups.js.map +1 -0
  94. package/index.d.ts +4 -1
  95. package/index.js +7 -1
  96. package/index.js.map +1 -1
  97. package/mongodb/mongoAllowList.d.ts +0 -12
  98. package/mongodb/mongoAllowList.js +0 -2
  99. package/mongodb/mongoAllowList.js.map +1 -1
  100. package/nas/fileSystem.d.ts +241 -0
  101. package/nas/fileSystem.js +123 -0
  102. package/nas/fileSystem.js.map +1 -0
  103. package/nas/fileSystems.d.ts +231 -0
  104. package/nas/fileSystems.js +90 -0
  105. package/nas/fileSystems.js.map +1 -0
  106. package/nas/index.d.ts +30 -0
  107. package/nas/index.js +55 -0
  108. package/nas/index.js.map +1 -0
  109. package/nas/mountPoint.d.ts +103 -0
  110. package/nas/mountPoint.js +80 -0
  111. package/nas/mountPoint.js.map +1 -0
  112. package/nas/mountPoints.d.ts +91 -0
  113. package/nas/mountPoints.js +29 -0
  114. package/nas/mountPoints.js.map +1 -0
  115. package/nas/permissionGroup.d.ts +116 -0
  116. package/nas/permissionGroup.js +92 -0
  117. package/nas/permissionGroup.js.map +1 -0
  118. package/nas/permissionGroups.d.ts +116 -0
  119. package/nas/permissionGroups.js +87 -0
  120. package/nas/permissionGroups.js.map +1 -0
  121. package/nas/regions.d.ts +62 -0
  122. package/nas/regions.js +42 -0
  123. package/nas/regions.js.map +1 -0
  124. package/nas/snapshot.d.ts +167 -0
  125. package/nas/snapshot.js +100 -0
  126. package/nas/snapshot.js.map +1 -0
  127. package/nas/snapshots.d.ts +131 -0
  128. package/nas/snapshots.js +59 -0
  129. package/nas/snapshots.js.map +1 -0
  130. package/nas/zones.d.ts +62 -0
  131. package/nas/zones.js +42 -0
  132. package/nas/zones.js.map +1 -0
  133. package/nat/gateway.d.ts +1 -1
  134. package/package.json +2 -2
  135. package/redis/instance.d.ts +7 -4
  136. package/redis/instance.js +1 -1
  137. package/redis/instance.js.map +1 -1
  138. package/tls/alarmNotifyGroup.d.ts +1 -1
  139. package/transit_router/bandwidthPackage.d.ts +211 -0
  140. package/transit_router/bandwidthPackage.js +102 -0
  141. package/transit_router/bandwidthPackage.js.map +1 -0
  142. package/transit_router/bandwidthPackages.d.ts +115 -0
  143. package/transit_router/bandwidthPackages.js +65 -0
  144. package/transit_router/bandwidthPackages.js.map +1 -0
  145. package/transit_router/directConnectGatewayAttachment.d.ts +116 -0
  146. package/transit_router/directConnectGatewayAttachment.js +87 -0
  147. package/transit_router/directConnectGatewayAttachment.js.map +1 -0
  148. package/transit_router/directConnectGatewayAttachments.d.ts +99 -0
  149. package/transit_router/directConnectGatewayAttachments.js +48 -0
  150. package/transit_router/directConnectGatewayAttachments.js.map +1 -0
  151. package/transit_router/grantRule.d.ts +95 -0
  152. package/transit_router/grantRule.js +82 -0
  153. package/transit_router/grantRule.js.map +1 -0
  154. package/transit_router/grantRules.d.ts +90 -0
  155. package/transit_router/grantRules.js +47 -0
  156. package/transit_router/grantRules.js.map +1 -0
  157. package/transit_router/index.d.ts +69 -0
  158. package/transit_router/index.js +110 -0
  159. package/transit_router/index.js.map +1 -0
  160. package/transit_router/peerAttachment.d.ts +179 -0
  161. package/transit_router/peerAttachment.js +105 -0
  162. package/transit_router/peerAttachment.js.map +1 -0
  163. package/transit_router/peerAttachments.d.ts +132 -0
  164. package/transit_router/peerAttachments.js +52 -0
  165. package/transit_router/peerAttachments.js.map +1 -0
  166. package/transit_router/routeEntries.d.ts +122 -0
  167. package/transit_router/routeEntries.js +52 -0
  168. package/transit_router/routeEntries.js.map +1 -0
  169. package/transit_router/routeEntry.d.ts +173 -0
  170. package/transit_router/routeEntry.js +103 -0
  171. package/transit_router/routeEntry.js.map +1 -0
  172. package/transit_router/routeTable.d.ts +135 -0
  173. package/transit_router/routeTable.js +89 -0
  174. package/transit_router/routeTable.js.map +1 -0
  175. package/transit_router/routeTableAssociation.d.ts +82 -0
  176. package/transit_router/routeTableAssociation.js +79 -0
  177. package/transit_router/routeTableAssociation.js.map +1 -0
  178. package/transit_router/routeTableAssociations.d.ts +92 -0
  179. package/transit_router/routeTableAssociations.js +49 -0
  180. package/transit_router/routeTableAssociations.js.map +1 -0
  181. package/transit_router/routeTablePropagation.d.ts +82 -0
  182. package/transit_router/routeTablePropagation.js +79 -0
  183. package/transit_router/routeTablePropagation.js.map +1 -0
  184. package/transit_router/routeTablePropagations.d.ts +92 -0
  185. package/transit_router/routeTablePropagations.js +49 -0
  186. package/transit_router/routeTablePropagations.js.map +1 -0
  187. package/transit_router/routeTables.d.ts +98 -0
  188. package/transit_router/routeTables.js +50 -0
  189. package/transit_router/routeTables.js.map +1 -0
  190. package/transit_router/sharedTransitRouterState.d.ts +82 -0
  191. package/transit_router/sharedTransitRouterState.js +79 -0
  192. package/transit_router/sharedTransitRouterState.js.map +1 -0
  193. package/transit_router/transitRouter.d.ts +148 -0
  194. package/transit_router/transitRouter.js +89 -0
  195. package/transit_router/transitRouter.js.map +1 -0
  196. package/transit_router/transitRouters.d.ts +89 -0
  197. package/transit_router/transitRouters.js +50 -0
  198. package/transit_router/transitRouters.js.map +1 -0
  199. package/transit_router/vpcAttachment.d.ts +164 -0
  200. package/transit_router/vpcAttachment.js +108 -0
  201. package/transit_router/vpcAttachment.js.map +1 -0
  202. package/transit_router/vpcAttachments.d.ts +101 -0
  203. package/transit_router/vpcAttachments.js +50 -0
  204. package/transit_router/vpcAttachments.js.map +1 -0
  205. package/transit_router/vpnAttachment.d.ts +153 -0
  206. package/transit_router/vpnAttachment.js +99 -0
  207. package/transit_router/vpnAttachment.js.map +1 -0
  208. package/transit_router/vpnAttachments.d.ts +101 -0
  209. package/transit_router/vpnAttachments.js +50 -0
  210. package/transit_router/vpnAttachments.js.map +1 -0
  211. package/types/input.d.ts +299 -4
  212. package/types/output.d.ts +5396 -3373
  213. package/vke/index.d.ts +3 -0
  214. package/vke/index.js +4 -1
  215. package/vke/index.js.map +1 -1
  216. package/vke/nodePool.d.ts +3 -3
  217. package/vke/nodePool.js +3 -3
  218. package/vke/supportResourceTypes.d.ts +80 -0
  219. package/vke/supportResourceTypes.js +44 -0
  220. package/vke/supportResourceTypes.js.map +1 -0
  221. package/vpc/haVip.d.ts +206 -0
  222. package/vpc/haVip.js +120 -0
  223. package/vpc/haVip.js.map +1 -0
  224. package/vpc/haVipAssociate.d.ts +131 -0
  225. package/vpc/haVipAssociate.js +118 -0
  226. package/vpc/haVipAssociate.js.map +1 -0
  227. package/vpc/haVips.d.ts +192 -0
  228. package/vpc/haVips.js +90 -0
  229. package/vpc/haVips.js.map +1 -0
  230. package/vpc/index.d.ts +15 -0
  231. package/vpc/index.js +22 -1
  232. package/vpc/index.js.map +1 -1
  233. package/vpc/networkAcl.d.ts +1 -1
  234. package/vpc/networkInterface.d.ts +31 -1
  235. package/vpc/networkInterface.js +4 -0
  236. package/vpc/networkInterface.js.map +1 -1
  237. package/vpc/prefixList.d.ts +166 -0
  238. package/vpc/prefixList.js +106 -0
  239. package/vpc/prefixList.js.map +1 -0
  240. package/vpc/prefixLists.d.ts +151 -0
  241. package/vpc/prefixLists.js +92 -0
  242. package/vpc/prefixLists.js.map +1 -0
  243. package/vpc/routeTable.d.ts +1 -1
  244. package/vpn/connection.d.ts +1 -1
  245. package/vpn/customerGateway.d.ts +1 -1
  246. package/vpn/gateway.d.ts +37 -1
  247. package/vpn/gateway.js +6 -0
  248. package/vpn/gateway.js.map +1 -1
  249. package/vpn/index.d.ts +12 -0
  250. package/vpn/index.js +17 -1
  251. package/vpn/index.js.map +1 -1
  252. package/vpn/sslVpnClientCert.d.ts +201 -0
  253. package/vpn/sslVpnClientCert.js +131 -0
  254. package/vpn/sslVpnClientCert.js.map +1 -0
  255. package/vpn/sslVpnClientCerts.d.ts +192 -0
  256. package/vpn/sslVpnClientCerts.js +134 -0
  257. package/vpn/sslVpnClientCerts.js.map +1 -0
  258. package/vpn/sslVpnServer.d.ts +231 -0
  259. package/vpn/sslVpnServer.js +128 -0
  260. package/vpn/sslVpnServer.js.map +1 -0
  261. package/vpn/sslVpnServers.d.ts +167 -0
  262. package/vpn/sslVpnServers.js +117 -0
  263. package/vpn/sslVpnServers.js.map +1 -0
@@ -0,0 +1,241 @@
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 nas file system
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.nas.Zones({});
14
+ * const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
15
+ * fileSystemName: "acc-test-fs",
16
+ * description: "acc-test",
17
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
18
+ * capacity: 103,
19
+ * projectName: "default",
20
+ * tags: [{
21
+ * key: "k1",
22
+ * value: "v1",
23
+ * }],
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * NasFileSystem can be imported using the id, e.g.
30
+ *
31
+ * ```sh
32
+ * $ pulumi import volcengine:nas/fileSystem:FileSystem default enas-cnbjd3879745****
33
+ * ```
34
+ */
35
+ export declare class FileSystem extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing FileSystem resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileSystemState, opts?: pulumi.CustomResourceOptions): FileSystem;
46
+ /**
47
+ * Returns true if the given object is an instance of FileSystem. This is designed to work even
48
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
49
+ */
50
+ static isInstance(obj: any): obj is FileSystem;
51
+ /**
52
+ * The capacity of the nas file system. Unit: GiB.
53
+ */
54
+ readonly capacity: pulumi.Output<number>;
55
+ /**
56
+ * The charge type of the nas file system.
57
+ */
58
+ readonly chargeType: pulumi.Output<string>;
59
+ /**
60
+ * The create time of the nas file system.
61
+ */
62
+ readonly createTime: pulumi.Output<string>;
63
+ /**
64
+ * The description of the nas file system.
65
+ */
66
+ readonly description: pulumi.Output<string>;
67
+ /**
68
+ * The name of the nas file system.
69
+ */
70
+ readonly fileSystemName: pulumi.Output<string>;
71
+ /**
72
+ * The type of the nas file system.
73
+ */
74
+ readonly fileSystemType: pulumi.Output<string>;
75
+ /**
76
+ * The project name of the nas file system.
77
+ */
78
+ readonly projectName: pulumi.Output<string>;
79
+ /**
80
+ * The protocol type of the nas file system.
81
+ */
82
+ readonly protocolType: pulumi.Output<string>;
83
+ /**
84
+ * The region id of the nas file system.
85
+ */
86
+ readonly regionId: pulumi.Output<string>;
87
+ /**
88
+ * The snapshot count of the nas file system.
89
+ */
90
+ readonly snapshotCount: pulumi.Output<number>;
91
+ /**
92
+ * The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
93
+ */
94
+ readonly snapshotId: pulumi.Output<string | undefined>;
95
+ /**
96
+ * The status of the nas file system.
97
+ */
98
+ readonly status: pulumi.Output<string>;
99
+ /**
100
+ * The storage type of the nas file system.
101
+ */
102
+ readonly storageType: pulumi.Output<string>;
103
+ /**
104
+ * Tags.
105
+ */
106
+ readonly tags: pulumi.Output<outputs.nas.FileSystemTag[] | undefined>;
107
+ /**
108
+ * The update time of the nas file system.
109
+ */
110
+ readonly updateTime: pulumi.Output<string>;
111
+ /**
112
+ * The version of the nas file system.
113
+ */
114
+ readonly version: pulumi.Output<string>;
115
+ /**
116
+ * The zone id of the nas file system.
117
+ */
118
+ readonly zoneId: pulumi.Output<string>;
119
+ /**
120
+ * The zone name of the nas file system.
121
+ */
122
+ readonly zoneName: pulumi.Output<string>;
123
+ /**
124
+ * Create a FileSystem resource with the given unique name, arguments, and options.
125
+ *
126
+ * @param name The _unique_ name of the resource.
127
+ * @param args The arguments to use to populate this resource's properties.
128
+ * @param opts A bag of options that control this resource's behavior.
129
+ */
130
+ constructor(name: string, args: FileSystemArgs, opts?: pulumi.CustomResourceOptions);
131
+ }
132
+ /**
133
+ * Input properties used for looking up and filtering FileSystem resources.
134
+ */
135
+ export interface FileSystemState {
136
+ /**
137
+ * The capacity of the nas file system. Unit: GiB.
138
+ */
139
+ capacity?: pulumi.Input<number>;
140
+ /**
141
+ * The charge type of the nas file system.
142
+ */
143
+ chargeType?: pulumi.Input<string>;
144
+ /**
145
+ * The create time of the nas file system.
146
+ */
147
+ createTime?: pulumi.Input<string>;
148
+ /**
149
+ * The description of the nas file system.
150
+ */
151
+ description?: pulumi.Input<string>;
152
+ /**
153
+ * The name of the nas file system.
154
+ */
155
+ fileSystemName?: pulumi.Input<string>;
156
+ /**
157
+ * The type of the nas file system.
158
+ */
159
+ fileSystemType?: pulumi.Input<string>;
160
+ /**
161
+ * The project name of the nas file system.
162
+ */
163
+ projectName?: pulumi.Input<string>;
164
+ /**
165
+ * The protocol type of the nas file system.
166
+ */
167
+ protocolType?: pulumi.Input<string>;
168
+ /**
169
+ * The region id of the nas file system.
170
+ */
171
+ regionId?: pulumi.Input<string>;
172
+ /**
173
+ * The snapshot count of the nas file system.
174
+ */
175
+ snapshotCount?: pulumi.Input<number>;
176
+ /**
177
+ * The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
178
+ */
179
+ snapshotId?: pulumi.Input<string>;
180
+ /**
181
+ * The status of the nas file system.
182
+ */
183
+ status?: pulumi.Input<string>;
184
+ /**
185
+ * The storage type of the nas file system.
186
+ */
187
+ storageType?: pulumi.Input<string>;
188
+ /**
189
+ * Tags.
190
+ */
191
+ tags?: pulumi.Input<pulumi.Input<inputs.nas.FileSystemTag>[]>;
192
+ /**
193
+ * The update time of the nas file system.
194
+ */
195
+ updateTime?: pulumi.Input<string>;
196
+ /**
197
+ * The version of the nas file system.
198
+ */
199
+ version?: pulumi.Input<string>;
200
+ /**
201
+ * The zone id of the nas file system.
202
+ */
203
+ zoneId?: pulumi.Input<string>;
204
+ /**
205
+ * The zone name of the nas file system.
206
+ */
207
+ zoneName?: pulumi.Input<string>;
208
+ }
209
+ /**
210
+ * The set of arguments for constructing a FileSystem resource.
211
+ */
212
+ export interface FileSystemArgs {
213
+ /**
214
+ * The capacity of the nas file system. Unit: GiB.
215
+ */
216
+ capacity: pulumi.Input<number>;
217
+ /**
218
+ * The description of the nas file system.
219
+ */
220
+ description?: pulumi.Input<string>;
221
+ /**
222
+ * The name of the nas file system.
223
+ */
224
+ fileSystemName: pulumi.Input<string>;
225
+ /**
226
+ * The project name of the nas file system.
227
+ */
228
+ projectName?: pulumi.Input<string>;
229
+ /**
230
+ * The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
231
+ */
232
+ snapshotId?: pulumi.Input<string>;
233
+ /**
234
+ * Tags.
235
+ */
236
+ tags?: pulumi.Input<pulumi.Input<inputs.nas.FileSystemTag>[]>;
237
+ /**
238
+ * The zone id of the nas file system.
239
+ */
240
+ zoneId: pulumi.Input<string>;
241
+ }
@@ -0,0 +1,123 @@
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.FileSystem = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage nas file system
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.nas.Zones({});
18
+ * const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
19
+ * fileSystemName: "acc-test-fs",
20
+ * description: "acc-test",
21
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
22
+ * capacity: 103,
23
+ * projectName: "default",
24
+ * tags: [{
25
+ * key: "k1",
26
+ * value: "v1",
27
+ * }],
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * NasFileSystem can be imported using the id, e.g.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import volcengine:nas/fileSystem:FileSystem default enas-cnbjd3879745****
37
+ * ```
38
+ */
39
+ class FileSystem extends pulumi.CustomResource {
40
+ /**
41
+ * Get an existing FileSystem resource's state with the given name, ID, and optional extra
42
+ * properties used to qualify the lookup.
43
+ *
44
+ * @param name The _unique_ name of the resulting resource.
45
+ * @param id The _unique_ provider ID of the resource to lookup.
46
+ * @param state Any extra arguments used during the lookup.
47
+ * @param opts Optional settings to control the behavior of the CustomResource.
48
+ */
49
+ static get(name, id, state, opts) {
50
+ return new FileSystem(name, state, Object.assign(Object.assign({}, opts), { id: id }));
51
+ }
52
+ /**
53
+ * Returns true if the given object is an instance of FileSystem. This is designed to work even
54
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
+ */
56
+ static isInstance(obj) {
57
+ if (obj === undefined || obj === null) {
58
+ return false;
59
+ }
60
+ return obj['__pulumiType'] === FileSystem.__pulumiType;
61
+ }
62
+ constructor(name, argsOrState, opts) {
63
+ let resourceInputs = {};
64
+ opts = opts || {};
65
+ if (opts.id) {
66
+ const state = argsOrState;
67
+ resourceInputs["capacity"] = state ? state.capacity : undefined;
68
+ resourceInputs["chargeType"] = state ? state.chargeType : undefined;
69
+ resourceInputs["createTime"] = state ? state.createTime : undefined;
70
+ resourceInputs["description"] = state ? state.description : undefined;
71
+ resourceInputs["fileSystemName"] = state ? state.fileSystemName : undefined;
72
+ resourceInputs["fileSystemType"] = state ? state.fileSystemType : undefined;
73
+ resourceInputs["projectName"] = state ? state.projectName : undefined;
74
+ resourceInputs["protocolType"] = state ? state.protocolType : undefined;
75
+ resourceInputs["regionId"] = state ? state.regionId : undefined;
76
+ resourceInputs["snapshotCount"] = state ? state.snapshotCount : undefined;
77
+ resourceInputs["snapshotId"] = state ? state.snapshotId : undefined;
78
+ resourceInputs["status"] = state ? state.status : undefined;
79
+ resourceInputs["storageType"] = state ? state.storageType : undefined;
80
+ resourceInputs["tags"] = state ? state.tags : undefined;
81
+ resourceInputs["updateTime"] = state ? state.updateTime : undefined;
82
+ resourceInputs["version"] = state ? state.version : undefined;
83
+ resourceInputs["zoneId"] = state ? state.zoneId : undefined;
84
+ resourceInputs["zoneName"] = state ? state.zoneName : undefined;
85
+ }
86
+ else {
87
+ const args = argsOrState;
88
+ if ((!args || args.capacity === undefined) && !opts.urn) {
89
+ throw new Error("Missing required property 'capacity'");
90
+ }
91
+ if ((!args || args.fileSystemName === undefined) && !opts.urn) {
92
+ throw new Error("Missing required property 'fileSystemName'");
93
+ }
94
+ if ((!args || args.zoneId === undefined) && !opts.urn) {
95
+ throw new Error("Missing required property 'zoneId'");
96
+ }
97
+ resourceInputs["capacity"] = args ? args.capacity : undefined;
98
+ resourceInputs["description"] = args ? args.description : undefined;
99
+ resourceInputs["fileSystemName"] = args ? args.fileSystemName : undefined;
100
+ resourceInputs["projectName"] = args ? args.projectName : undefined;
101
+ resourceInputs["snapshotId"] = args ? args.snapshotId : undefined;
102
+ resourceInputs["tags"] = args ? args.tags : undefined;
103
+ resourceInputs["zoneId"] = args ? args.zoneId : undefined;
104
+ resourceInputs["chargeType"] = undefined /*out*/;
105
+ resourceInputs["createTime"] = undefined /*out*/;
106
+ resourceInputs["fileSystemType"] = undefined /*out*/;
107
+ resourceInputs["protocolType"] = undefined /*out*/;
108
+ resourceInputs["regionId"] = undefined /*out*/;
109
+ resourceInputs["snapshotCount"] = undefined /*out*/;
110
+ resourceInputs["status"] = undefined /*out*/;
111
+ resourceInputs["storageType"] = undefined /*out*/;
112
+ resourceInputs["updateTime"] = undefined /*out*/;
113
+ resourceInputs["version"] = undefined /*out*/;
114
+ resourceInputs["zoneName"] = undefined /*out*/;
115
+ }
116
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
117
+ super(FileSystem.__pulumiType, name, resourceInputs, opts);
118
+ }
119
+ }
120
+ exports.FileSystem = FileSystem;
121
+ /** @internal */
122
+ FileSystem.__pulumiType = 'volcengine:nas/fileSystem:FileSystem';
123
+ //# sourceMappingURL=fileSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileSystem.js","sourceRoot":"","sources":["../../nas/fileSystem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,CAA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AS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AApKL,gCAqKC;AAvJG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
@@ -0,0 +1,231 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Use this data source to query detailed information of nas file systems
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.nas.Zones({});
14
+ * const fooFileSystem: volcengine.nas.FileSystem[] = [];
15
+ * for (const range = {value: 0}; range.value < 3; range.value++) {
16
+ * fooFileSystem.push(new volcengine.nas.FileSystem(`fooFileSystem-${range.value}`, {
17
+ * fileSystemName: `acc-test-fs-${range.value}`,
18
+ * description: "acc-test",
19
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
20
+ * capacity: 103,
21
+ * projectName: "default",
22
+ * tags: [{
23
+ * key: "k1",
24
+ * value: "v1",
25
+ * }],
26
+ * }));
27
+ * }
28
+ * const fooFileSystems = volcengine.nas.FileSystemsOutput({
29
+ * ids: fooFileSystem.map(__item => __item.id),
30
+ * });
31
+ * ```
32
+ */
33
+ export declare function fileSystems(args?: FileSystemsArgs, opts?: pulumi.InvokeOptions): Promise<FileSystemsResult>;
34
+ /**
35
+ * A collection of arguments for invoking FileSystems.
36
+ */
37
+ export interface FileSystemsArgs {
38
+ /**
39
+ * The charge type of nas file system.
40
+ */
41
+ chargeType?: string;
42
+ /**
43
+ * The name of nas file system. This field supports fuzzy queries.
44
+ */
45
+ fileSystemName?: string;
46
+ /**
47
+ * A list of nas file system ids.
48
+ */
49
+ ids?: string[];
50
+ /**
51
+ * The mount point id of nas file system.
52
+ */
53
+ mountPointId?: string;
54
+ /**
55
+ * A Name Regex of Resource.
56
+ */
57
+ nameRegex?: string;
58
+ /**
59
+ * File name where to save data source results.
60
+ */
61
+ outputFile?: string;
62
+ /**
63
+ * The permission group id of nas file system.
64
+ */
65
+ permissionGroupId?: string;
66
+ /**
67
+ * The project name of nas file system.
68
+ */
69
+ projectName?: string;
70
+ /**
71
+ * The protocol type of nas file system.
72
+ */
73
+ protocolType?: string;
74
+ /**
75
+ * The status of nas file system.
76
+ */
77
+ statuses?: string[];
78
+ /**
79
+ * The storage type of nas file system.
80
+ */
81
+ storageType?: string;
82
+ /**
83
+ * Tags.
84
+ */
85
+ tags?: inputs.nas.FileSystemsTag[];
86
+ /**
87
+ * The zone id of nas file system.
88
+ */
89
+ zoneId?: string;
90
+ }
91
+ /**
92
+ * A collection of values returned by FileSystems.
93
+ */
94
+ export interface FileSystemsResult {
95
+ /**
96
+ * The charge type of the nas file system.
97
+ */
98
+ readonly chargeType?: string;
99
+ /**
100
+ * The name of the nas file system.
101
+ */
102
+ readonly fileSystemName?: string;
103
+ /**
104
+ * The collection of query.
105
+ */
106
+ readonly fileSystems: outputs.nas.FileSystemsFileSystem[];
107
+ /**
108
+ * The provider-assigned unique ID for this managed resource.
109
+ */
110
+ readonly id: string;
111
+ readonly ids?: string[];
112
+ readonly mountPointId?: string;
113
+ readonly nameRegex?: string;
114
+ readonly outputFile?: string;
115
+ readonly permissionGroupId?: string;
116
+ /**
117
+ * The project name of the nas file system.
118
+ */
119
+ readonly projectName?: string;
120
+ /**
121
+ * The protocol type of the nas file system.
122
+ */
123
+ readonly protocolType?: string;
124
+ /**
125
+ * The status of the nas file system.
126
+ */
127
+ readonly statuses?: string[];
128
+ /**
129
+ * The storage type of the nas file system.
130
+ */
131
+ readonly storageType?: string;
132
+ /**
133
+ * Tags of the nas file system.
134
+ */
135
+ readonly tags?: outputs.nas.FileSystemsTag[];
136
+ /**
137
+ * The total count of query.
138
+ */
139
+ readonly totalCount: number;
140
+ /**
141
+ * The zone id of the nas file system.
142
+ */
143
+ readonly zoneId?: string;
144
+ }
145
+ /**
146
+ * Use this data source to query detailed information of nas file systems
147
+ * ## Example Usage
148
+ *
149
+ * ```typescript
150
+ * import * as pulumi from "@pulumi/pulumi";
151
+ * import * as volcengine from "@pulumi/volcengine";
152
+ * import * as volcengine from "@volcengine/pulumi";
153
+ *
154
+ * const fooZones = volcengine.nas.Zones({});
155
+ * const fooFileSystem: volcengine.nas.FileSystem[] = [];
156
+ * for (const range = {value: 0}; range.value < 3; range.value++) {
157
+ * fooFileSystem.push(new volcengine.nas.FileSystem(`fooFileSystem-${range.value}`, {
158
+ * fileSystemName: `acc-test-fs-${range.value}`,
159
+ * description: "acc-test",
160
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
161
+ * capacity: 103,
162
+ * projectName: "default",
163
+ * tags: [{
164
+ * key: "k1",
165
+ * value: "v1",
166
+ * }],
167
+ * }));
168
+ * }
169
+ * const fooFileSystems = volcengine.nas.FileSystemsOutput({
170
+ * ids: fooFileSystem.map(__item => __item.id),
171
+ * });
172
+ * ```
173
+ */
174
+ export declare function fileSystemsOutput(args?: FileSystemsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<FileSystemsResult>;
175
+ /**
176
+ * A collection of arguments for invoking FileSystems.
177
+ */
178
+ export interface FileSystemsOutputArgs {
179
+ /**
180
+ * The charge type of nas file system.
181
+ */
182
+ chargeType?: pulumi.Input<string>;
183
+ /**
184
+ * The name of nas file system. This field supports fuzzy queries.
185
+ */
186
+ fileSystemName?: pulumi.Input<string>;
187
+ /**
188
+ * A list of nas file system ids.
189
+ */
190
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
191
+ /**
192
+ * The mount point id of nas file system.
193
+ */
194
+ mountPointId?: pulumi.Input<string>;
195
+ /**
196
+ * A Name Regex of Resource.
197
+ */
198
+ nameRegex?: pulumi.Input<string>;
199
+ /**
200
+ * File name where to save data source results.
201
+ */
202
+ outputFile?: pulumi.Input<string>;
203
+ /**
204
+ * The permission group id of nas file system.
205
+ */
206
+ permissionGroupId?: pulumi.Input<string>;
207
+ /**
208
+ * The project name of nas file system.
209
+ */
210
+ projectName?: pulumi.Input<string>;
211
+ /**
212
+ * The protocol type of nas file system.
213
+ */
214
+ protocolType?: pulumi.Input<string>;
215
+ /**
216
+ * The status of nas file system.
217
+ */
218
+ statuses?: pulumi.Input<pulumi.Input<string>[]>;
219
+ /**
220
+ * The storage type of nas file system.
221
+ */
222
+ storageType?: pulumi.Input<string>;
223
+ /**
224
+ * Tags.
225
+ */
226
+ tags?: pulumi.Input<pulumi.Input<inputs.nas.FileSystemsTagArgs>[]>;
227
+ /**
228
+ * The zone id of nas file system.
229
+ */
230
+ zoneId?: pulumi.Input<string>;
231
+ }
@@ -0,0 +1,90 @@
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.fileSystemsOutput = exports.fileSystems = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of nas file systems
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.nas.Zones({});
18
+ * const fooFileSystem: volcengine.nas.FileSystem[] = [];
19
+ * for (const range = {value: 0}; range.value < 3; range.value++) {
20
+ * fooFileSystem.push(new volcengine.nas.FileSystem(`fooFileSystem-${range.value}`, {
21
+ * fileSystemName: `acc-test-fs-${range.value}`,
22
+ * description: "acc-test",
23
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
24
+ * capacity: 103,
25
+ * projectName: "default",
26
+ * tags: [{
27
+ * key: "k1",
28
+ * value: "v1",
29
+ * }],
30
+ * }));
31
+ * }
32
+ * const fooFileSystems = volcengine.nas.FileSystemsOutput({
33
+ * ids: fooFileSystem.map(__item => __item.id),
34
+ * });
35
+ * ```
36
+ */
37
+ function fileSystems(args, opts) {
38
+ args = args || {};
39
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
40
+ return pulumi.runtime.invoke("volcengine:nas/fileSystems:FileSystems", {
41
+ "chargeType": args.chargeType,
42
+ "fileSystemName": args.fileSystemName,
43
+ "ids": args.ids,
44
+ "mountPointId": args.mountPointId,
45
+ "nameRegex": args.nameRegex,
46
+ "outputFile": args.outputFile,
47
+ "permissionGroupId": args.permissionGroupId,
48
+ "projectName": args.projectName,
49
+ "protocolType": args.protocolType,
50
+ "statuses": args.statuses,
51
+ "storageType": args.storageType,
52
+ "tags": args.tags,
53
+ "zoneId": args.zoneId,
54
+ }, opts);
55
+ }
56
+ exports.fileSystems = fileSystems;
57
+ /**
58
+ * Use this data source to query detailed information of nas file systems
59
+ * ## Example Usage
60
+ *
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as volcengine from "@pulumi/volcengine";
64
+ * import * as volcengine from "@volcengine/pulumi";
65
+ *
66
+ * const fooZones = volcengine.nas.Zones({});
67
+ * const fooFileSystem: volcengine.nas.FileSystem[] = [];
68
+ * for (const range = {value: 0}; range.value < 3; range.value++) {
69
+ * fooFileSystem.push(new volcengine.nas.FileSystem(`fooFileSystem-${range.value}`, {
70
+ * fileSystemName: `acc-test-fs-${range.value}`,
71
+ * description: "acc-test",
72
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
73
+ * capacity: 103,
74
+ * projectName: "default",
75
+ * tags: [{
76
+ * key: "k1",
77
+ * value: "v1",
78
+ * }],
79
+ * }));
80
+ * }
81
+ * const fooFileSystems = volcengine.nas.FileSystemsOutput({
82
+ * ids: fooFileSystem.map(__item => __item.id),
83
+ * });
84
+ * ```
85
+ */
86
+ function fileSystemsOutput(args, opts) {
87
+ return pulumi.output(args).apply((a) => fileSystems(a, opts));
88
+ }
89
+ exports.fileSystemsOutput = fileSystemsOutput;
90
+ //# sourceMappingURL=fileSystems.js.map