@volcengine/pulumi 0.0.16 → 0.0.18
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.
- package/cloudfs/access.d.ts +180 -0
- package/cloudfs/access.js +104 -0
- package/cloudfs/access.js.map +1 -0
- package/cloudfs/accesses.d.ts +78 -0
- package/cloudfs/accesses.js +46 -0
- package/cloudfs/accesses.js.map +1 -0
- package/cloudfs/fileSystem.d.ts +287 -0
- package/cloudfs/fileSystem.js +140 -0
- package/cloudfs/fileSystem.js.map +1 -0
- package/cloudfs/fileSystems.d.ts +93 -0
- package/cloudfs/fileSystems.js +49 -0
- package/cloudfs/fileSystems.js.map +1 -0
- package/cloudfs/index.d.ts +24 -0
- package/cloudfs/index.js +47 -0
- package/cloudfs/index.js.map +1 -0
- package/cloudfs/namespace.d.ts +183 -0
- package/cloudfs/namespace.js +100 -0
- package/cloudfs/namespace.js.map +1 -0
- package/cloudfs/namespaces.d.ts +98 -0
- package/cloudfs/namespaces.js +50 -0
- package/cloudfs/namespaces.js.map +1 -0
- package/cloudfs/nsQuotas.d.ts +81 -0
- package/cloudfs/nsQuotas.js +52 -0
- package/cloudfs/nsQuotas.js.map +1 -0
- package/cloudfs/quotas.d.ts +62 -0
- package/cloudfs/quotas.js +42 -0
- package/cloudfs/quotas.js.map +1 -0
- package/cr/registry.d.ts +1 -1
- package/cr/registry.js +1 -1
- package/ecs/command.d.ts +157 -0
- package/ecs/command.js +93 -0
- package/ecs/command.js.map +1 -0
- package/ecs/commands.d.ts +132 -0
- package/ecs/commands.js +52 -0
- package/ecs/commands.js.map +1 -0
- package/ecs/index.d.ts +18 -0
- package/ecs/index.js +23 -1
- package/ecs/index.js.map +1 -1
- package/ecs/instance.d.ts +4 -4
- package/ecs/invocation.d.ts +223 -0
- package/ecs/invocation.js +118 -0
- package/ecs/invocation.js.map +1 -0
- package/ecs/invocationResults.d.ts +116 -0
- package/ecs/invocationResults.js +51 -0
- package/ecs/invocationResults.js.map +1 -0
- package/ecs/invocations.d.ts +161 -0
- package/ecs/invocations.js +56 -0
- package/ecs/invocations.js.map +1 -0
- package/ecs/regions.d.ts +75 -0
- package/ecs/regions.js +47 -0
- package/ecs/regions.js.map +1 -0
- package/escloud/instance.d.ts +26 -13
- package/escloud/instance.js +26 -13
- package/escloud/instance.js.map +1 -1
- package/escloud/instances.d.ts +100 -6
- package/escloud/instances.js +100 -6
- package/escloud/instances.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/rds_mysql/account.d.ts +48 -4
- package/rds_mysql/account.js +48 -4
- package/rds_mysql/account.js.map +1 -1
- package/rds_mysql/accounts.d.ts +106 -6
- package/rds_mysql/accounts.js +106 -6
- package/rds_mysql/accounts.js.map +1 -1
- package/rds_mysql/allowlist.d.ts +7 -3
- package/rds_mysql/allowlist.js +7 -3
- package/rds_mysql/allowlist.js.map +1 -1
- package/rds_mysql/allowlistAssociate.d.ts +47 -3
- package/rds_mysql/allowlistAssociate.js +47 -3
- package/rds_mysql/allowlistAssociate.js.map +1 -1
- package/rds_mysql/allowlists.d.ts +102 -4
- package/rds_mysql/allowlists.js +102 -4
- package/rds_mysql/allowlists.js.map +1 -1
- package/rds_mysql/database.d.ts +38 -4
- package/rds_mysql/database.js +38 -4
- package/rds_mysql/database.js.map +1 -1
- package/rds_mysql/databases.d.ts +84 -6
- package/rds_mysql/databases.js +84 -6
- package/rds_mysql/databases.js.map +1 -1
- package/rds_mysql/instance.d.ts +18 -15
- package/rds_mysql/instance.js +17 -14
- package/rds_mysql/instance.js.map +1 -1
- package/rds_mysql/instanceReadonlyNode.d.ts +38 -3
- package/rds_mysql/instanceReadonlyNode.js +38 -3
- package/rds_mysql/instanceReadonlyNode.js.map +1 -1
- package/rds_mysql/instances.d.ts +74 -4
- package/rds_mysql/instances.js +74 -4
- package/rds_mysql/instances.js.map +1 -1
- package/redis/account.d.ts +32 -5
- package/redis/account.js +32 -5
- package/redis/account.js.map +1 -1
- package/redis/accounts.d.ts +74 -4
- package/redis/accounts.js +74 -4
- package/redis/accounts.js.map +1 -1
- package/redis/allowList.d.ts +2 -2
- package/redis/allowList.js +2 -2
- package/redis/allowListAssociate.d.ts +34 -6
- package/redis/allowListAssociate.js +34 -6
- package/redis/allowListAssociate.js.map +1 -1
- package/redis/allowLists.d.ts +78 -2
- package/redis/allowLists.js +78 -2
- package/redis/allowLists.js.map +1 -1
- package/redis/backup.d.ts +29 -1
- package/redis/backup.js +29 -1
- package/redis/backup.js.map +1 -1
- package/redis/backupRestore.d.ts +33 -3
- package/redis/backupRestore.js +33 -3
- package/redis/backupRestore.js.map +1 -1
- package/redis/backups.d.ts +68 -6
- package/redis/backups.js +68 -6
- package/redis/backups.js.map +1 -1
- package/redis/continuousBackup.d.ts +29 -1
- package/redis/continuousBackup.js +29 -1
- package/redis/continuousBackup.js.map +1 -1
- package/redis/endpoint.d.ts +37 -3
- package/redis/endpoint.js +37 -3
- package/redis/endpoint.js.map +1 -1
- package/redis/instance.d.ts +41 -32
- package/redis/instance.js +41 -32
- package/redis/instance.js.map +1 -1
- package/redis/instances.d.ts +60 -4
- package/redis/instances.js +60 -4
- package/redis/instances.js.map +1 -1
- package/tls/index_.d.ts +33 -8
- package/tls/index_.js +23 -8
- package/tls/index_.js.map +1 -1
- package/tls/indexes.d.ts +2 -2
- package/tls/indexes.js +2 -2
- package/tos/bucketObject.d.ts +8 -0
- package/tos/bucketObject.js +2 -0
- package/tos/bucketObject.js.map +1 -1
- package/types/input.d.ts +43 -1
- package/types/output.d.ts +505 -1
- package/vpc/securityGroup.d.ts +2 -2
- package/vpc/securityGroup.js +1 -1
- package/vpc/vpc.d.ts +1 -1
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage cloudfs file system
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
9
|
+
*
|
|
10
|
+
* const foo = new volcengine.cloudfs.FileSystem("foo", {
|
|
11
|
+
* cacheCapacityTib: 10,
|
|
12
|
+
* cachePlan: "T2",
|
|
13
|
+
* fsName: "tffile",
|
|
14
|
+
* mode: "HDFS_MODE",
|
|
15
|
+
* readOnly: true,
|
|
16
|
+
* securityGroupId: "sg-rrv1klfg5s00v0x578mx14m",
|
|
17
|
+
* subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m",
|
|
18
|
+
* tosBucket: "tfacc",
|
|
19
|
+
* tosPrefix: "pre/",
|
|
20
|
+
* vpcRouteEnabled: true,
|
|
21
|
+
* zoneId: "cn-beijing-b",
|
|
22
|
+
* });
|
|
23
|
+
* const foo1 = new volcengine.cloudfs.FileSystem("foo1", {
|
|
24
|
+
* cacheCapacityTib: 15,
|
|
25
|
+
* cachePlan: "T2",
|
|
26
|
+
* fsName: "tffileu",
|
|
27
|
+
* mode: "ACC_MODE",
|
|
28
|
+
* readOnly: true,
|
|
29
|
+
* securityGroupId: "sg-rrv1klfg5s00v0x578mx14m",
|
|
30
|
+
* subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m",
|
|
31
|
+
* tosBucket: "tfacc",
|
|
32
|
+
* vpcRouteEnabled: false,
|
|
33
|
+
* zoneId: "cn-beijing-b",
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* CloudFileSystem can be imported using the FsName, e.g.
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import volcengine:cloudfs/fileSystem:FileSystem default tfname
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class FileSystem extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing FileSystem resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileSystemState, opts?: pulumi.CustomResourceOptions): FileSystem;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of FileSystem. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj: any): obj is FileSystem;
|
|
61
|
+
/**
|
|
62
|
+
* The default vpc access id.
|
|
63
|
+
*/
|
|
64
|
+
readonly accessId: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The capacity of cache. This parameter is required when cache acceleration is enabled.
|
|
67
|
+
*/
|
|
68
|
+
readonly cacheCapacityTib: pulumi.Output<number | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The cache plan. The value can be `DISABLED` or `T2` or `T4`. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled.
|
|
71
|
+
*/
|
|
72
|
+
readonly cachePlan: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The creation time.
|
|
75
|
+
*/
|
|
76
|
+
readonly createdTime: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* The name of file system.
|
|
79
|
+
*/
|
|
80
|
+
readonly fsName: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The mode of file system. The value can be `HDFS_MODE` or `ACC_MODE`.
|
|
83
|
+
*/
|
|
84
|
+
readonly mode: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The point mount.
|
|
87
|
+
*/
|
|
88
|
+
readonly mountPoint: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
91
|
+
*/
|
|
92
|
+
readonly readOnly: pulumi.Output<boolean | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* The id of security group. This parameter is required when cache acceleration is enabled.
|
|
95
|
+
*/
|
|
96
|
+
readonly securityGroupId: pulumi.Output<string | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Status of file system.
|
|
99
|
+
*/
|
|
100
|
+
readonly status: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The id of subnet. This parameter is required when cache acceleration is enabled.
|
|
103
|
+
*/
|
|
104
|
+
readonly subnetId: pulumi.Output<string | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
|
|
107
|
+
*/
|
|
108
|
+
readonly tosAccountId: pulumi.Output<number | undefined>;
|
|
109
|
+
/**
|
|
110
|
+
* The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
|
|
111
|
+
*/
|
|
112
|
+
readonly tosAk: pulumi.Output<string | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
|
|
115
|
+
*/
|
|
116
|
+
readonly tosBucket: pulumi.Output<string | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
|
|
119
|
+
*/
|
|
120
|
+
readonly tosPrefix: pulumi.Output<string | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
|
|
123
|
+
*/
|
|
124
|
+
readonly tosSk: pulumi.Output<string | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* The id of vpc.
|
|
127
|
+
*/
|
|
128
|
+
readonly vpcId: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Whether enable all vpc route.
|
|
131
|
+
*/
|
|
132
|
+
readonly vpcRouteEnabled: pulumi.Output<boolean | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* The id of zone.
|
|
135
|
+
*/
|
|
136
|
+
readonly zoneId: pulumi.Output<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Create a FileSystem resource with the given unique name, arguments, and options.
|
|
139
|
+
*
|
|
140
|
+
* @param name The _unique_ name of the resource.
|
|
141
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
142
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
143
|
+
*/
|
|
144
|
+
constructor(name: string, args: FileSystemArgs, opts?: pulumi.CustomResourceOptions);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Input properties used for looking up and filtering FileSystem resources.
|
|
148
|
+
*/
|
|
149
|
+
export interface FileSystemState {
|
|
150
|
+
/**
|
|
151
|
+
* The default vpc access id.
|
|
152
|
+
*/
|
|
153
|
+
accessId?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* The capacity of cache. This parameter is required when cache acceleration is enabled.
|
|
156
|
+
*/
|
|
157
|
+
cacheCapacityTib?: pulumi.Input<number>;
|
|
158
|
+
/**
|
|
159
|
+
* The cache plan. The value can be `DISABLED` or `T2` or `T4`. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled.
|
|
160
|
+
*/
|
|
161
|
+
cachePlan?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The creation time.
|
|
164
|
+
*/
|
|
165
|
+
createdTime?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* The name of file system.
|
|
168
|
+
*/
|
|
169
|
+
fsName?: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* The mode of file system. The value can be `HDFS_MODE` or `ACC_MODE`.
|
|
172
|
+
*/
|
|
173
|
+
mode?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* The point mount.
|
|
176
|
+
*/
|
|
177
|
+
mountPoint?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
180
|
+
*/
|
|
181
|
+
readOnly?: pulumi.Input<boolean>;
|
|
182
|
+
/**
|
|
183
|
+
* The id of security group. This parameter is required when cache acceleration is enabled.
|
|
184
|
+
*/
|
|
185
|
+
securityGroupId?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* Status of file system.
|
|
188
|
+
*/
|
|
189
|
+
status?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* The id of subnet. This parameter is required when cache acceleration is enabled.
|
|
192
|
+
*/
|
|
193
|
+
subnetId?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
|
|
196
|
+
*/
|
|
197
|
+
tosAccountId?: pulumi.Input<number>;
|
|
198
|
+
/**
|
|
199
|
+
* The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
|
|
200
|
+
*/
|
|
201
|
+
tosAk?: pulumi.Input<string>;
|
|
202
|
+
/**
|
|
203
|
+
* The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
|
|
204
|
+
*/
|
|
205
|
+
tosBucket?: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
|
|
208
|
+
*/
|
|
209
|
+
tosPrefix?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
|
|
212
|
+
*/
|
|
213
|
+
tosSk?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* The id of vpc.
|
|
216
|
+
*/
|
|
217
|
+
vpcId?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* Whether enable all vpc route.
|
|
220
|
+
*/
|
|
221
|
+
vpcRouteEnabled?: pulumi.Input<boolean>;
|
|
222
|
+
/**
|
|
223
|
+
* The id of zone.
|
|
224
|
+
*/
|
|
225
|
+
zoneId?: pulumi.Input<string>;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* The set of arguments for constructing a FileSystem resource.
|
|
229
|
+
*/
|
|
230
|
+
export interface FileSystemArgs {
|
|
231
|
+
/**
|
|
232
|
+
* The capacity of cache. This parameter is required when cache acceleration is enabled.
|
|
233
|
+
*/
|
|
234
|
+
cacheCapacityTib?: pulumi.Input<number>;
|
|
235
|
+
/**
|
|
236
|
+
* The cache plan. The value can be `DISABLED` or `T2` or `T4`. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled.
|
|
237
|
+
*/
|
|
238
|
+
cachePlan: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* The name of file system.
|
|
241
|
+
*/
|
|
242
|
+
fsName: pulumi.Input<string>;
|
|
243
|
+
/**
|
|
244
|
+
* The mode of file system. The value can be `HDFS_MODE` or `ACC_MODE`.
|
|
245
|
+
*/
|
|
246
|
+
mode: pulumi.Input<string>;
|
|
247
|
+
/**
|
|
248
|
+
* Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
|
|
249
|
+
*/
|
|
250
|
+
readOnly?: pulumi.Input<boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* The id of security group. This parameter is required when cache acceleration is enabled.
|
|
253
|
+
*/
|
|
254
|
+
securityGroupId?: pulumi.Input<string>;
|
|
255
|
+
/**
|
|
256
|
+
* The id of subnet. This parameter is required when cache acceleration is enabled.
|
|
257
|
+
*/
|
|
258
|
+
subnetId?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
|
|
261
|
+
*/
|
|
262
|
+
tosAccountId?: pulumi.Input<number>;
|
|
263
|
+
/**
|
|
264
|
+
* The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
|
|
265
|
+
*/
|
|
266
|
+
tosAk?: pulumi.Input<string>;
|
|
267
|
+
/**
|
|
268
|
+
* The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
|
|
269
|
+
*/
|
|
270
|
+
tosBucket?: pulumi.Input<string>;
|
|
271
|
+
/**
|
|
272
|
+
* The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
|
|
273
|
+
*/
|
|
274
|
+
tosPrefix?: pulumi.Input<string>;
|
|
275
|
+
/**
|
|
276
|
+
* The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
|
|
277
|
+
*/
|
|
278
|
+
tosSk?: pulumi.Input<string>;
|
|
279
|
+
/**
|
|
280
|
+
* Whether enable all vpc route.
|
|
281
|
+
*/
|
|
282
|
+
vpcRouteEnabled?: pulumi.Input<boolean>;
|
|
283
|
+
/**
|
|
284
|
+
* The id of zone.
|
|
285
|
+
*/
|
|
286
|
+
zoneId: pulumi.Input<string>;
|
|
287
|
+
}
|
|
@@ -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.FileSystem = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage cloudfs file system
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const foo = new volcengine.cloudfs.FileSystem("foo", {
|
|
17
|
+
* cacheCapacityTib: 10,
|
|
18
|
+
* cachePlan: "T2",
|
|
19
|
+
* fsName: "tffile",
|
|
20
|
+
* mode: "HDFS_MODE",
|
|
21
|
+
* readOnly: true,
|
|
22
|
+
* securityGroupId: "sg-rrv1klfg5s00v0x578mx14m",
|
|
23
|
+
* subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m",
|
|
24
|
+
* tosBucket: "tfacc",
|
|
25
|
+
* tosPrefix: "pre/",
|
|
26
|
+
* vpcRouteEnabled: true,
|
|
27
|
+
* zoneId: "cn-beijing-b",
|
|
28
|
+
* });
|
|
29
|
+
* const foo1 = new volcengine.cloudfs.FileSystem("foo1", {
|
|
30
|
+
* cacheCapacityTib: 15,
|
|
31
|
+
* cachePlan: "T2",
|
|
32
|
+
* fsName: "tffileu",
|
|
33
|
+
* mode: "ACC_MODE",
|
|
34
|
+
* readOnly: true,
|
|
35
|
+
* securityGroupId: "sg-rrv1klfg5s00v0x578mx14m",
|
|
36
|
+
* subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m",
|
|
37
|
+
* tosBucket: "tfacc",
|
|
38
|
+
* vpcRouteEnabled: false,
|
|
39
|
+
* zoneId: "cn-beijing-b",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* CloudFileSystem can be imported using the FsName, e.g.
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import volcengine:cloudfs/fileSystem:FileSystem default tfname
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class FileSystem extends pulumi.CustomResource {
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing FileSystem resource's state with the given name, ID, and optional extra
|
|
54
|
+
* properties used to qualify the lookup.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resulting resource.
|
|
57
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
58
|
+
* @param state Any extra arguments used during the lookup.
|
|
59
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
60
|
+
*/
|
|
61
|
+
static get(name, id, state, opts) {
|
|
62
|
+
return new FileSystem(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of FileSystem. This is designed to work even
|
|
66
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
|
+
*/
|
|
68
|
+
static isInstance(obj) {
|
|
69
|
+
if (obj === undefined || obj === null) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
return obj['__pulumiType'] === FileSystem.__pulumiType;
|
|
73
|
+
}
|
|
74
|
+
constructor(name, argsOrState, opts) {
|
|
75
|
+
let resourceInputs = {};
|
|
76
|
+
opts = opts || {};
|
|
77
|
+
if (opts.id) {
|
|
78
|
+
const state = argsOrState;
|
|
79
|
+
resourceInputs["accessId"] = state ? state.accessId : undefined;
|
|
80
|
+
resourceInputs["cacheCapacityTib"] = state ? state.cacheCapacityTib : undefined;
|
|
81
|
+
resourceInputs["cachePlan"] = state ? state.cachePlan : undefined;
|
|
82
|
+
resourceInputs["createdTime"] = state ? state.createdTime : undefined;
|
|
83
|
+
resourceInputs["fsName"] = state ? state.fsName : undefined;
|
|
84
|
+
resourceInputs["mode"] = state ? state.mode : undefined;
|
|
85
|
+
resourceInputs["mountPoint"] = state ? state.mountPoint : undefined;
|
|
86
|
+
resourceInputs["readOnly"] = state ? state.readOnly : undefined;
|
|
87
|
+
resourceInputs["securityGroupId"] = state ? state.securityGroupId : undefined;
|
|
88
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
89
|
+
resourceInputs["subnetId"] = state ? state.subnetId : undefined;
|
|
90
|
+
resourceInputs["tosAccountId"] = state ? state.tosAccountId : undefined;
|
|
91
|
+
resourceInputs["tosAk"] = state ? state.tosAk : undefined;
|
|
92
|
+
resourceInputs["tosBucket"] = state ? state.tosBucket : undefined;
|
|
93
|
+
resourceInputs["tosPrefix"] = state ? state.tosPrefix : undefined;
|
|
94
|
+
resourceInputs["tosSk"] = state ? state.tosSk : undefined;
|
|
95
|
+
resourceInputs["vpcId"] = state ? state.vpcId : undefined;
|
|
96
|
+
resourceInputs["vpcRouteEnabled"] = state ? state.vpcRouteEnabled : undefined;
|
|
97
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const args = argsOrState;
|
|
101
|
+
if ((!args || args.cachePlan === undefined) && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'cachePlan'");
|
|
103
|
+
}
|
|
104
|
+
if ((!args || args.fsName === undefined) && !opts.urn) {
|
|
105
|
+
throw new Error("Missing required property 'fsName'");
|
|
106
|
+
}
|
|
107
|
+
if ((!args || args.mode === undefined) && !opts.urn) {
|
|
108
|
+
throw new Error("Missing required property 'mode'");
|
|
109
|
+
}
|
|
110
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
111
|
+
throw new Error("Missing required property 'zoneId'");
|
|
112
|
+
}
|
|
113
|
+
resourceInputs["cacheCapacityTib"] = args ? args.cacheCapacityTib : undefined;
|
|
114
|
+
resourceInputs["cachePlan"] = args ? args.cachePlan : undefined;
|
|
115
|
+
resourceInputs["fsName"] = args ? args.fsName : undefined;
|
|
116
|
+
resourceInputs["mode"] = args ? args.mode : undefined;
|
|
117
|
+
resourceInputs["readOnly"] = args ? args.readOnly : undefined;
|
|
118
|
+
resourceInputs["securityGroupId"] = args ? args.securityGroupId : undefined;
|
|
119
|
+
resourceInputs["subnetId"] = args ? args.subnetId : undefined;
|
|
120
|
+
resourceInputs["tosAccountId"] = args ? args.tosAccountId : undefined;
|
|
121
|
+
resourceInputs["tosAk"] = args ? args.tosAk : undefined;
|
|
122
|
+
resourceInputs["tosBucket"] = args ? args.tosBucket : undefined;
|
|
123
|
+
resourceInputs["tosPrefix"] = args ? args.tosPrefix : undefined;
|
|
124
|
+
resourceInputs["tosSk"] = args ? args.tosSk : undefined;
|
|
125
|
+
resourceInputs["vpcRouteEnabled"] = args ? args.vpcRouteEnabled : undefined;
|
|
126
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
127
|
+
resourceInputs["accessId"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["mountPoint"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
131
|
+
resourceInputs["vpcId"] = undefined /*out*/;
|
|
132
|
+
}
|
|
133
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
134
|
+
super(FileSystem.__pulumiType, name, resourceInputs, opts);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.FileSystem = FileSystem;
|
|
138
|
+
/** @internal */
|
|
139
|
+
FileSystem.__pulumiType = 'volcengine:cloudfs/fileSystem:FileSystem';
|
|
140
|
+
//# sourceMappingURL=fileSystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileSystem.js","sourceRoot":"","sources":["../../cloudfs/fileSystem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;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;;AA7KL,gCA8KC;AAhKG,gBAAgB;AACO,uBAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 cloudfs file systems
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
10
|
+
*
|
|
11
|
+
* const default = volcengine.cloudfs.FileSystems({
|
|
12
|
+
* fsName: "tftest2",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function fileSystems(args?: FileSystemsArgs, opts?: pulumi.InvokeOptions): Promise<FileSystemsResult>;
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking FileSystems.
|
|
19
|
+
*/
|
|
20
|
+
export interface FileSystemsArgs {
|
|
21
|
+
/**
|
|
22
|
+
* The name of file system.
|
|
23
|
+
*/
|
|
24
|
+
fsName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The status of file system.
|
|
27
|
+
*/
|
|
28
|
+
metaStatus?: string;
|
|
29
|
+
/**
|
|
30
|
+
* A Name Regex of cloudfs.
|
|
31
|
+
*/
|
|
32
|
+
nameRegex?: string;
|
|
33
|
+
/**
|
|
34
|
+
* File name where to save data source results.
|
|
35
|
+
*/
|
|
36
|
+
outputFile?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A collection of values returned by FileSystems.
|
|
40
|
+
*/
|
|
41
|
+
export interface FileSystemsResult {
|
|
42
|
+
/**
|
|
43
|
+
* The collection of query.
|
|
44
|
+
*/
|
|
45
|
+
readonly fileSystems: outputs.cloudfs.FileSystemsFileSystem[];
|
|
46
|
+
readonly fsName?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The provider-assigned unique ID for this managed resource.
|
|
49
|
+
*/
|
|
50
|
+
readonly id: string;
|
|
51
|
+
readonly metaStatus?: string;
|
|
52
|
+
readonly nameRegex?: string;
|
|
53
|
+
readonly outputFile?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The total count of query.
|
|
56
|
+
*/
|
|
57
|
+
readonly totalCount: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Use this data source to query detailed information of cloudfs file systems
|
|
61
|
+
* ## Example Usage
|
|
62
|
+
*
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
66
|
+
*
|
|
67
|
+
* const default = volcengine.cloudfs.FileSystems({
|
|
68
|
+
* fsName: "tftest2",
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare function fileSystemsOutput(args?: FileSystemsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<FileSystemsResult>;
|
|
73
|
+
/**
|
|
74
|
+
* A collection of arguments for invoking FileSystems.
|
|
75
|
+
*/
|
|
76
|
+
export interface FileSystemsOutputArgs {
|
|
77
|
+
/**
|
|
78
|
+
* The name of file system.
|
|
79
|
+
*/
|
|
80
|
+
fsName?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The status of file system.
|
|
83
|
+
*/
|
|
84
|
+
metaStatus?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* A Name Regex of cloudfs.
|
|
87
|
+
*/
|
|
88
|
+
nameRegex?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* File name where to save data source results.
|
|
91
|
+
*/
|
|
92
|
+
outputFile?: pulumi.Input<string>;
|
|
93
|
+
}
|
|
@@ -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.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 cloudfs file systems
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
*
|
|
16
|
+
* const default = volcengine.cloudfs.FileSystems({
|
|
17
|
+
* fsName: "tftest2",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
function fileSystems(args, opts) {
|
|
22
|
+
args = args || {};
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
24
|
+
return pulumi.runtime.invoke("volcengine:cloudfs/fileSystems:FileSystems", {
|
|
25
|
+
"fsName": args.fsName,
|
|
26
|
+
"metaStatus": args.metaStatus,
|
|
27
|
+
"nameRegex": args.nameRegex,
|
|
28
|
+
"outputFile": args.outputFile,
|
|
29
|
+
}, opts);
|
|
30
|
+
}
|
|
31
|
+
exports.fileSystems = fileSystems;
|
|
32
|
+
/**
|
|
33
|
+
* Use this data source to query detailed information of cloudfs file systems
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
39
|
+
*
|
|
40
|
+
* const default = volcengine.cloudfs.FileSystems({
|
|
41
|
+
* fsName: "tftest2",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
function fileSystemsOutput(args, opts) {
|
|
46
|
+
return pulumi.output(args).apply((a) => fileSystems(a, opts));
|
|
47
|
+
}
|
|
48
|
+
exports.fileSystemsOutput = fileSystemsOutput;
|
|
49
|
+
//# sourceMappingURL=fileSystems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileSystems.js","sourceRoot":"","sources":["../../cloudfs/fileSystems.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kCAUC;AA6CD;;;;;;;;;;;;GAYG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { AccessArgs, AccessState } from "./access";
|
|
2
|
+
export type Access = import("./access").Access;
|
|
3
|
+
export declare const Access: typeof import("./access").Access;
|
|
4
|
+
export { AccessesArgs, AccessesResult, AccessesOutputArgs } from "./accesses";
|
|
5
|
+
export declare const accesses: typeof import("./accesses").accesses;
|
|
6
|
+
export declare const accessesOutput: typeof import("./accesses").accessesOutput;
|
|
7
|
+
export { FileSystemArgs, FileSystemState } from "./fileSystem";
|
|
8
|
+
export type FileSystem = import("./fileSystem").FileSystem;
|
|
9
|
+
export declare const FileSystem: typeof import("./fileSystem").FileSystem;
|
|
10
|
+
export { FileSystemsArgs, FileSystemsResult, FileSystemsOutputArgs } from "./fileSystems";
|
|
11
|
+
export declare const fileSystems: typeof import("./fileSystems").fileSystems;
|
|
12
|
+
export declare const fileSystemsOutput: typeof import("./fileSystems").fileSystemsOutput;
|
|
13
|
+
export { NamespaceArgs, NamespaceState } from "./namespace";
|
|
14
|
+
export type Namespace = import("./namespace").Namespace;
|
|
15
|
+
export declare const Namespace: typeof import("./namespace").Namespace;
|
|
16
|
+
export { NamespacesArgs, NamespacesResult, NamespacesOutputArgs } from "./namespaces";
|
|
17
|
+
export declare const namespaces: typeof import("./namespaces").namespaces;
|
|
18
|
+
export declare const namespacesOutput: typeof import("./namespaces").namespacesOutput;
|
|
19
|
+
export { NsQuotasArgs, NsQuotasResult, NsQuotasOutputArgs } from "./nsQuotas";
|
|
20
|
+
export declare const nsQuotas: typeof import("./nsQuotas").nsQuotas;
|
|
21
|
+
export declare const nsQuotasOutput: typeof import("./nsQuotas").nsQuotasOutput;
|
|
22
|
+
export { QuotasArgs, QuotasResult, QuotasOutputArgs } from "./quotas";
|
|
23
|
+
export declare const quotas: typeof import("./quotas").quotas;
|
|
24
|
+
export declare const quotasOutput: typeof import("./quotas").quotasOutput;
|
package/cloudfs/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
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.quotasOutput = exports.quotas = exports.nsQuotasOutput = exports.nsQuotas = exports.namespacesOutput = exports.namespaces = exports.Namespace = exports.fileSystemsOutput = exports.fileSystems = exports.FileSystem = exports.accessesOutput = exports.accesses = exports.Access = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.Access = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Access"], () => require("./access"));
|
|
10
|
+
exports.accesses = null;
|
|
11
|
+
exports.accessesOutput = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["accesses", "accessesOutput"], () => require("./accesses"));
|
|
13
|
+
exports.FileSystem = null;
|
|
14
|
+
utilities.lazyLoad(exports, ["FileSystem"], () => require("./fileSystem"));
|
|
15
|
+
exports.fileSystems = null;
|
|
16
|
+
exports.fileSystemsOutput = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["fileSystems", "fileSystemsOutput"], () => require("./fileSystems"));
|
|
18
|
+
exports.Namespace = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["Namespace"], () => require("./namespace"));
|
|
20
|
+
exports.namespaces = null;
|
|
21
|
+
exports.namespacesOutput = null;
|
|
22
|
+
utilities.lazyLoad(exports, ["namespaces", "namespacesOutput"], () => require("./namespaces"));
|
|
23
|
+
exports.nsQuotas = null;
|
|
24
|
+
exports.nsQuotasOutput = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["nsQuotas", "nsQuotasOutput"], () => require("./nsQuotas"));
|
|
26
|
+
exports.quotas = null;
|
|
27
|
+
exports.quotasOutput = null;
|
|
28
|
+
utilities.lazyLoad(exports, ["quotas", "quotasOutput"], () => require("./quotas"));
|
|
29
|
+
const _module = {
|
|
30
|
+
version: utilities.getVersion(),
|
|
31
|
+
construct: (name, type, urn) => {
|
|
32
|
+
switch (type) {
|
|
33
|
+
case "volcengine:cloudfs/access:Access":
|
|
34
|
+
return new exports.Access(name, undefined, { urn });
|
|
35
|
+
case "volcengine:cloudfs/fileSystem:FileSystem":
|
|
36
|
+
return new exports.FileSystem(name, undefined, { urn });
|
|
37
|
+
case "volcengine:cloudfs/namespace:Namespace":
|
|
38
|
+
return new exports.Namespace(name, undefined, { urn });
|
|
39
|
+
default:
|
|
40
|
+
throw new Error(`unknown resource type ${type}`);
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
pulumi.runtime.registerResourceModule("volcengine", "cloudfs/access", _module);
|
|
45
|
+
pulumi.runtime.registerResourceModule("volcengine", "cloudfs/fileSystem", _module);
|
|
46
|
+
pulumi.runtime.registerResourceModule("volcengine", "cloudfs/namespace", _module);
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../cloudfs/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,MAAM,GAAqC,IAAW,CAAC;AACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,C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