pulumi-alicloud 3.68.0a1732684713__py3-none-any.whl → 3.68.0a1733143327__py3-none-any.whl
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.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +40 -0
- pulumi_alicloud/cdn/_inputs.py +3 -23
- pulumi_alicloud/cdn/domain_new.py +93 -51
- pulumi_alicloud/cdn/outputs.py +2 -16
- pulumi_alicloud/cdn/real_time_log_delivery.py +97 -46
- pulumi_alicloud/cen/get_flowlogs.py +250 -35
- pulumi_alicloud/cen/outputs.py +116 -17
- pulumi_alicloud/cs/node_pool.py +7 -0
- pulumi_alicloud/ecs/_inputs.py +92 -0
- pulumi_alicloud/ecs/auto_snapshot_policy.py +323 -129
- pulumi_alicloud/ecs/outputs.py +88 -0
- pulumi_alicloud/ecs/snapshot_policy.py +154 -1
- pulumi_alicloud/emrv2/_inputs.py +875 -21
- pulumi_alicloud/emrv2/cluster.py +47 -0
- pulumi_alicloud/emrv2/outputs.py +580 -14
- pulumi_alicloud/gwlb/__init__.py +1 -0
- pulumi_alicloud/gwlb/_inputs.py +147 -126
- pulumi_alicloud/gwlb/get_zones.py +173 -0
- pulumi_alicloud/gwlb/listener.py +50 -50
- pulumi_alicloud/gwlb/load_balancer.py +78 -71
- pulumi_alicloud/gwlb/outputs.py +139 -84
- pulumi_alicloud/gwlb/server_group.py +162 -113
- pulumi_alicloud/kvstore/audit_log_config.py +7 -7
- pulumi_alicloud/kvstore/backup_policy.py +9 -9
- pulumi_alicloud/kvstore/get_instance_classes.py +8 -8
- pulumi_alicloud/kvstore/get_instances.py +9 -7
- pulumi_alicloud/kvstore/instance.py +21 -21
- pulumi_alicloud/kvstore/outputs.py +6 -6
- pulumi_alicloud/nas/_inputs.py +148 -0
- pulumi_alicloud/nas/file_system.py +482 -222
- pulumi_alicloud/nas/outputs.py +109 -0
- pulumi_alicloud/pai/__init__.py +7 -0
- pulumi_alicloud/pai/_inputs.py +129 -0
- pulumi_alicloud/pai/outputs.py +83 -0
- pulumi_alicloud/pai/workspace_code_source.py +702 -0
- pulumi_alicloud/pai/workspace_dataset.py +1081 -0
- pulumi_alicloud/pai/workspace_datasetversion.py +818 -0
- pulumi_alicloud/pai/workspace_experiment.py +394 -0
- pulumi_alicloud/pai/workspace_run.py +344 -0
- pulumi_alicloud/pai/workspace_workspace.py +6 -6
- pulumi_alicloud/pulumi-plugin.json +1 -1
- {pulumi_alicloud-3.68.0a1732684713.dist-info → pulumi_alicloud-3.68.0a1733143327.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.68.0a1732684713.dist-info → pulumi_alicloud-3.68.0a1733143327.dist-info}/RECORD +45 -37
- {pulumi_alicloud-3.68.0a1732684713.dist-info → pulumi_alicloud-3.68.0a1733143327.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.68.0a1732684713.dist-info → pulumi_alicloud-3.68.0a1733143327.dist-info}/top_level.txt +0 -0
|
@@ -13,6 +13,8 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
16
18
|
|
|
17
19
|
__all__ = ['FileSystemArgs', 'FileSystem']
|
|
18
20
|
|
|
@@ -26,36 +28,40 @@ class FileSystemArgs:
|
|
|
26
28
|
encrypt_type: Optional[pulumi.Input[int]] = None,
|
|
27
29
|
file_system_type: Optional[pulumi.Input[str]] = None,
|
|
28
30
|
kms_key_id: Optional[pulumi.Input[str]] = None,
|
|
31
|
+
nfs_acl: Optional[pulumi.Input['FileSystemNfsAclArgs']] = None,
|
|
32
|
+
recycle_bin: Optional[pulumi.Input['FileSystemRecycleBinArgs']] = None,
|
|
33
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
34
|
+
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
29
35
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
30
36
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
31
37
|
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
32
38
|
zone_id: Optional[pulumi.Input[str]] = None):
|
|
33
39
|
"""
|
|
34
40
|
The set of arguments for constructing a FileSystem resource.
|
|
35
|
-
:param pulumi.Input[str] protocol_type: The protocol type of the file system.
|
|
36
|
-
Valid values:
|
|
37
|
-
`NFS
|
|
38
|
-
`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
:param pulumi.Input[int] capacity: The capacity of the file system.
|
|
45
|
-
|
|
46
|
-
:param pulumi.Input[
|
|
47
|
-
:param pulumi.Input[
|
|
48
|
-
|
|
49
|
-
:param pulumi.Input[
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
`
|
|
53
|
-
|
|
54
|
-
:param pulumi.Input[str]
|
|
41
|
+
:param pulumi.Input[str] protocol_type: The protocol type of the file system. Valid values:
|
|
42
|
+
- If `file_system_type` is set to `standard`. Valid values: `NFS`, `SMB`.
|
|
43
|
+
- If `file_system_type` is set to `extreme`. Valid values: `NFS`.
|
|
44
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `cpfs`.
|
|
45
|
+
:param pulumi.Input[str] storage_type: The storage type of the file system. Valid values:
|
|
46
|
+
- If `file_system_type` is set to `standard`. Valid values: `Performance`, `Capacity`, `Premium`.
|
|
47
|
+
- If `file_system_type` is set to `extreme`. Valid values: `standard`, `advance`.
|
|
48
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `advance_100`, `advance_200`.
|
|
49
|
+
> **NOTE:** From version 1.140.0, `storage_type` can be set to `standard`, `advance`. From version 1.153.0, `storage_type` can be set to `advance_100`, `advance_200`. From version 1.236.0, `storage_type` can be set to `Premium`.
|
|
50
|
+
:param pulumi.Input[int] capacity: The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
|
|
51
|
+
:param pulumi.Input[str] description: The description of the file system.
|
|
52
|
+
:param pulumi.Input[int] encrypt_type: Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
|
|
53
|
+
:param pulumi.Input[str] file_system_type: The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
|
|
54
|
+
:param pulumi.Input[str] kms_key_id: The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
|
|
55
|
+
:param pulumi.Input['FileSystemNfsAclArgs'] nfs_acl: The NFS ACL feature of the file system. See `nfs_acl` below.
|
|
56
|
+
> **NOTE:** `nfs_acl` takes effect only if `file_system_type` is set to `standard`.
|
|
57
|
+
:param pulumi.Input['FileSystemRecycleBinArgs'] recycle_bin: The recycle bin feature of the file system. See `recycle_bin` below.
|
|
58
|
+
> **NOTE:** `recycle_bin` takes effect only if `file_system_type` is set to `standard`.
|
|
59
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group.
|
|
60
|
+
:param pulumi.Input[str] snapshot_id: The ID of the snapshot. **NOTE:** `snapshot_id` takes effect only if `file_system_type` is set to `extreme`.
|
|
55
61
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
56
|
-
:param pulumi.Input[str] vpc_id: The
|
|
57
|
-
:param pulumi.Input[str] vswitch_id: The
|
|
58
|
-
:param pulumi.Input[str] zone_id: The
|
|
62
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
63
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
64
|
+
:param pulumi.Input[str] zone_id: The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
|
|
59
65
|
"""
|
|
60
66
|
pulumi.set(__self__, "protocol_type", protocol_type)
|
|
61
67
|
pulumi.set(__self__, "storage_type", storage_type)
|
|
@@ -69,6 +75,14 @@ class FileSystemArgs:
|
|
|
69
75
|
pulumi.set(__self__, "file_system_type", file_system_type)
|
|
70
76
|
if kms_key_id is not None:
|
|
71
77
|
pulumi.set(__self__, "kms_key_id", kms_key_id)
|
|
78
|
+
if nfs_acl is not None:
|
|
79
|
+
pulumi.set(__self__, "nfs_acl", nfs_acl)
|
|
80
|
+
if recycle_bin is not None:
|
|
81
|
+
pulumi.set(__self__, "recycle_bin", recycle_bin)
|
|
82
|
+
if resource_group_id is not None:
|
|
83
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
84
|
+
if snapshot_id is not None:
|
|
85
|
+
pulumi.set(__self__, "snapshot_id", snapshot_id)
|
|
72
86
|
if tags is not None:
|
|
73
87
|
pulumi.set(__self__, "tags", tags)
|
|
74
88
|
if vpc_id is not None:
|
|
@@ -82,11 +96,10 @@ class FileSystemArgs:
|
|
|
82
96
|
@pulumi.getter(name="protocolType")
|
|
83
97
|
def protocol_type(self) -> pulumi.Input[str]:
|
|
84
98
|
"""
|
|
85
|
-
The protocol type of the file system.
|
|
86
|
-
Valid values:
|
|
87
|
-
`NFS
|
|
88
|
-
`
|
|
89
|
-
`cpfs` (Available when the `file_system_type` is `cpfs`).
|
|
99
|
+
The protocol type of the file system. Valid values:
|
|
100
|
+
- If `file_system_type` is set to `standard`. Valid values: `NFS`, `SMB`.
|
|
101
|
+
- If `file_system_type` is set to `extreme`. Valid values: `NFS`.
|
|
102
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `cpfs`.
|
|
90
103
|
"""
|
|
91
104
|
return pulumi.get(self, "protocol_type")
|
|
92
105
|
|
|
@@ -98,10 +111,11 @@ class FileSystemArgs:
|
|
|
98
111
|
@pulumi.getter(name="storageType")
|
|
99
112
|
def storage_type(self) -> pulumi.Input[str]:
|
|
100
113
|
"""
|
|
101
|
-
The storage type of the file
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
114
|
+
The storage type of the file system. Valid values:
|
|
115
|
+
- If `file_system_type` is set to `standard`. Valid values: `Performance`, `Capacity`, `Premium`.
|
|
116
|
+
- If `file_system_type` is set to `extreme`. Valid values: `standard`, `advance`.
|
|
117
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `advance_100`, `advance_200`.
|
|
118
|
+
> **NOTE:** From version 1.140.0, `storage_type` can be set to `standard`, `advance`. From version 1.153.0, `storage_type` can be set to `advance_100`, `advance_200`. From version 1.236.0, `storage_type` can be set to `Premium`.
|
|
105
119
|
"""
|
|
106
120
|
return pulumi.get(self, "storage_type")
|
|
107
121
|
|
|
@@ -113,8 +127,7 @@ class FileSystemArgs:
|
|
|
113
127
|
@pulumi.getter
|
|
114
128
|
def capacity(self) -> Optional[pulumi.Input[int]]:
|
|
115
129
|
"""
|
|
116
|
-
The capacity of the file system.
|
|
117
|
-
Unit: gib; **Note**: The minimum value is 100.
|
|
130
|
+
The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
|
|
118
131
|
"""
|
|
119
132
|
return pulumi.get(self, "capacity")
|
|
120
133
|
|
|
@@ -126,7 +139,7 @@ class FileSystemArgs:
|
|
|
126
139
|
@pulumi.getter
|
|
127
140
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
128
141
|
"""
|
|
129
|
-
The
|
|
142
|
+
The description of the file system.
|
|
130
143
|
"""
|
|
131
144
|
return pulumi.get(self, "description")
|
|
132
145
|
|
|
@@ -138,8 +151,7 @@ class FileSystemArgs:
|
|
|
138
151
|
@pulumi.getter(name="encryptType")
|
|
139
152
|
def encrypt_type(self) -> Optional[pulumi.Input[int]]:
|
|
140
153
|
"""
|
|
141
|
-
|
|
142
|
-
* Valid values:
|
|
154
|
+
Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
|
|
143
155
|
"""
|
|
144
156
|
return pulumi.get(self, "encrypt_type")
|
|
145
157
|
|
|
@@ -151,11 +163,7 @@ class FileSystemArgs:
|
|
|
151
163
|
@pulumi.getter(name="fileSystemType")
|
|
152
164
|
def file_system_type(self) -> Optional[pulumi.Input[str]]:
|
|
153
165
|
"""
|
|
154
|
-
|
|
155
|
-
Valid values:
|
|
156
|
-
`standard` (Default),
|
|
157
|
-
`extreme`,
|
|
158
|
-
`cpfs`.
|
|
166
|
+
The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
|
|
159
167
|
"""
|
|
160
168
|
return pulumi.get(self, "file_system_type")
|
|
161
169
|
|
|
@@ -167,7 +175,7 @@ class FileSystemArgs:
|
|
|
167
175
|
@pulumi.getter(name="kmsKeyId")
|
|
168
176
|
def kms_key_id(self) -> Optional[pulumi.Input[str]]:
|
|
169
177
|
"""
|
|
170
|
-
The
|
|
178
|
+
The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
|
|
171
179
|
"""
|
|
172
180
|
return pulumi.get(self, "kms_key_id")
|
|
173
181
|
|
|
@@ -175,6 +183,56 @@ class FileSystemArgs:
|
|
|
175
183
|
def kms_key_id(self, value: Optional[pulumi.Input[str]]):
|
|
176
184
|
pulumi.set(self, "kms_key_id", value)
|
|
177
185
|
|
|
186
|
+
@property
|
|
187
|
+
@pulumi.getter(name="nfsAcl")
|
|
188
|
+
def nfs_acl(self) -> Optional[pulumi.Input['FileSystemNfsAclArgs']]:
|
|
189
|
+
"""
|
|
190
|
+
The NFS ACL feature of the file system. See `nfs_acl` below.
|
|
191
|
+
> **NOTE:** `nfs_acl` takes effect only if `file_system_type` is set to `standard`.
|
|
192
|
+
"""
|
|
193
|
+
return pulumi.get(self, "nfs_acl")
|
|
194
|
+
|
|
195
|
+
@nfs_acl.setter
|
|
196
|
+
def nfs_acl(self, value: Optional[pulumi.Input['FileSystemNfsAclArgs']]):
|
|
197
|
+
pulumi.set(self, "nfs_acl", value)
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
@pulumi.getter(name="recycleBin")
|
|
201
|
+
def recycle_bin(self) -> Optional[pulumi.Input['FileSystemRecycleBinArgs']]:
|
|
202
|
+
"""
|
|
203
|
+
The recycle bin feature of the file system. See `recycle_bin` below.
|
|
204
|
+
> **NOTE:** `recycle_bin` takes effect only if `file_system_type` is set to `standard`.
|
|
205
|
+
"""
|
|
206
|
+
return pulumi.get(self, "recycle_bin")
|
|
207
|
+
|
|
208
|
+
@recycle_bin.setter
|
|
209
|
+
def recycle_bin(self, value: Optional[pulumi.Input['FileSystemRecycleBinArgs']]):
|
|
210
|
+
pulumi.set(self, "recycle_bin", value)
|
|
211
|
+
|
|
212
|
+
@property
|
|
213
|
+
@pulumi.getter(name="resourceGroupId")
|
|
214
|
+
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
215
|
+
"""
|
|
216
|
+
The ID of the resource group.
|
|
217
|
+
"""
|
|
218
|
+
return pulumi.get(self, "resource_group_id")
|
|
219
|
+
|
|
220
|
+
@resource_group_id.setter
|
|
221
|
+
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
222
|
+
pulumi.set(self, "resource_group_id", value)
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
@pulumi.getter(name="snapshotId")
|
|
226
|
+
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
|
|
227
|
+
"""
|
|
228
|
+
The ID of the snapshot. **NOTE:** `snapshot_id` takes effect only if `file_system_type` is set to `extreme`.
|
|
229
|
+
"""
|
|
230
|
+
return pulumi.get(self, "snapshot_id")
|
|
231
|
+
|
|
232
|
+
@snapshot_id.setter
|
|
233
|
+
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
|
|
234
|
+
pulumi.set(self, "snapshot_id", value)
|
|
235
|
+
|
|
178
236
|
@property
|
|
179
237
|
@pulumi.getter
|
|
180
238
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
@@ -191,7 +249,7 @@ class FileSystemArgs:
|
|
|
191
249
|
@pulumi.getter(name="vpcId")
|
|
192
250
|
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
193
251
|
"""
|
|
194
|
-
The
|
|
252
|
+
The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
195
253
|
"""
|
|
196
254
|
return pulumi.get(self, "vpc_id")
|
|
197
255
|
|
|
@@ -203,7 +261,7 @@ class FileSystemArgs:
|
|
|
203
261
|
@pulumi.getter(name="vswitchId")
|
|
204
262
|
def vswitch_id(self) -> Optional[pulumi.Input[str]]:
|
|
205
263
|
"""
|
|
206
|
-
The
|
|
264
|
+
The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
207
265
|
"""
|
|
208
266
|
return pulumi.get(self, "vswitch_id")
|
|
209
267
|
|
|
@@ -215,7 +273,7 @@ class FileSystemArgs:
|
|
|
215
273
|
@pulumi.getter(name="zoneId")
|
|
216
274
|
def zone_id(self) -> Optional[pulumi.Input[str]]:
|
|
217
275
|
"""
|
|
218
|
-
The
|
|
276
|
+
The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
|
|
219
277
|
"""
|
|
220
278
|
return pulumi.get(self, "zone_id")
|
|
221
279
|
|
|
@@ -228,11 +286,17 @@ class FileSystemArgs:
|
|
|
228
286
|
class _FileSystemState:
|
|
229
287
|
def __init__(__self__, *,
|
|
230
288
|
capacity: Optional[pulumi.Input[int]] = None,
|
|
289
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
231
290
|
description: Optional[pulumi.Input[str]] = None,
|
|
232
291
|
encrypt_type: Optional[pulumi.Input[int]] = None,
|
|
233
292
|
file_system_type: Optional[pulumi.Input[str]] = None,
|
|
234
293
|
kms_key_id: Optional[pulumi.Input[str]] = None,
|
|
294
|
+
nfs_acl: Optional[pulumi.Input['FileSystemNfsAclArgs']] = None,
|
|
235
295
|
protocol_type: Optional[pulumi.Input[str]] = None,
|
|
296
|
+
recycle_bin: Optional[pulumi.Input['FileSystemRecycleBinArgs']] = None,
|
|
297
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
298
|
+
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
299
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
236
300
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
237
301
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
238
302
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -240,33 +304,37 @@ class _FileSystemState:
|
|
|
240
304
|
zone_id: Optional[pulumi.Input[str]] = None):
|
|
241
305
|
"""
|
|
242
306
|
Input properties used for looking up and filtering FileSystem resources.
|
|
243
|
-
:param pulumi.Input[int] capacity: The capacity of the file system.
|
|
244
|
-
|
|
245
|
-
:param pulumi.Input[str] description: The
|
|
246
|
-
:param pulumi.Input[int] encrypt_type:
|
|
247
|
-
|
|
248
|
-
:param pulumi.Input[str]
|
|
249
|
-
|
|
250
|
-
`
|
|
251
|
-
|
|
252
|
-
`
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
`
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
:param pulumi.Input[str]
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
307
|
+
:param pulumi.Input[int] capacity: The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
|
|
308
|
+
:param pulumi.Input[str] create_time: (Available since v1.236.0) The time when the file system was created.
|
|
309
|
+
:param pulumi.Input[str] description: The description of the file system.
|
|
310
|
+
:param pulumi.Input[int] encrypt_type: Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
|
|
311
|
+
:param pulumi.Input[str] file_system_type: The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
|
|
312
|
+
:param pulumi.Input[str] kms_key_id: The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
|
|
313
|
+
:param pulumi.Input['FileSystemNfsAclArgs'] nfs_acl: The NFS ACL feature of the file system. See `nfs_acl` below.
|
|
314
|
+
> **NOTE:** `nfs_acl` takes effect only if `file_system_type` is set to `standard`.
|
|
315
|
+
:param pulumi.Input[str] protocol_type: The protocol type of the file system. Valid values:
|
|
316
|
+
- If `file_system_type` is set to `standard`. Valid values: `NFS`, `SMB`.
|
|
317
|
+
- If `file_system_type` is set to `extreme`. Valid values: `NFS`.
|
|
318
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `cpfs`.
|
|
319
|
+
:param pulumi.Input['FileSystemRecycleBinArgs'] recycle_bin: The recycle bin feature of the file system. See `recycle_bin` below.
|
|
320
|
+
> **NOTE:** `recycle_bin` takes effect only if `file_system_type` is set to `standard`.
|
|
321
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group.
|
|
322
|
+
:param pulumi.Input[str] snapshot_id: The ID of the snapshot. **NOTE:** `snapshot_id` takes effect only if `file_system_type` is set to `extreme`.
|
|
323
|
+
:param pulumi.Input[str] status: (Available since v1.236.0) The status of the File System.
|
|
324
|
+
:param pulumi.Input[str] storage_type: The storage type of the file system. Valid values:
|
|
325
|
+
- If `file_system_type` is set to `standard`. Valid values: `Performance`, `Capacity`, `Premium`.
|
|
326
|
+
- If `file_system_type` is set to `extreme`. Valid values: `standard`, `advance`.
|
|
327
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `advance_100`, `advance_200`.
|
|
328
|
+
> **NOTE:** From version 1.140.0, `storage_type` can be set to `standard`, `advance`. From version 1.153.0, `storage_type` can be set to `advance_100`, `advance_200`. From version 1.236.0, `storage_type` can be set to `Premium`.
|
|
263
329
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
264
|
-
:param pulumi.Input[str] vpc_id: The
|
|
265
|
-
:param pulumi.Input[str] vswitch_id: The
|
|
266
|
-
:param pulumi.Input[str] zone_id: The
|
|
330
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
331
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
332
|
+
:param pulumi.Input[str] zone_id: The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
|
|
267
333
|
"""
|
|
268
334
|
if capacity is not None:
|
|
269
335
|
pulumi.set(__self__, "capacity", capacity)
|
|
336
|
+
if create_time is not None:
|
|
337
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
270
338
|
if description is not None:
|
|
271
339
|
pulumi.set(__self__, "description", description)
|
|
272
340
|
if encrypt_type is not None:
|
|
@@ -275,8 +343,18 @@ class _FileSystemState:
|
|
|
275
343
|
pulumi.set(__self__, "file_system_type", file_system_type)
|
|
276
344
|
if kms_key_id is not None:
|
|
277
345
|
pulumi.set(__self__, "kms_key_id", kms_key_id)
|
|
346
|
+
if nfs_acl is not None:
|
|
347
|
+
pulumi.set(__self__, "nfs_acl", nfs_acl)
|
|
278
348
|
if protocol_type is not None:
|
|
279
349
|
pulumi.set(__self__, "protocol_type", protocol_type)
|
|
350
|
+
if recycle_bin is not None:
|
|
351
|
+
pulumi.set(__self__, "recycle_bin", recycle_bin)
|
|
352
|
+
if resource_group_id is not None:
|
|
353
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
354
|
+
if snapshot_id is not None:
|
|
355
|
+
pulumi.set(__self__, "snapshot_id", snapshot_id)
|
|
356
|
+
if status is not None:
|
|
357
|
+
pulumi.set(__self__, "status", status)
|
|
280
358
|
if storage_type is not None:
|
|
281
359
|
pulumi.set(__self__, "storage_type", storage_type)
|
|
282
360
|
if tags is not None:
|
|
@@ -292,8 +370,7 @@ class _FileSystemState:
|
|
|
292
370
|
@pulumi.getter
|
|
293
371
|
def capacity(self) -> Optional[pulumi.Input[int]]:
|
|
294
372
|
"""
|
|
295
|
-
The capacity of the file system.
|
|
296
|
-
Unit: gib; **Note**: The minimum value is 100.
|
|
373
|
+
The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
|
|
297
374
|
"""
|
|
298
375
|
return pulumi.get(self, "capacity")
|
|
299
376
|
|
|
@@ -301,11 +378,23 @@ class _FileSystemState:
|
|
|
301
378
|
def capacity(self, value: Optional[pulumi.Input[int]]):
|
|
302
379
|
pulumi.set(self, "capacity", value)
|
|
303
380
|
|
|
381
|
+
@property
|
|
382
|
+
@pulumi.getter(name="createTime")
|
|
383
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
384
|
+
"""
|
|
385
|
+
(Available since v1.236.0) The time when the file system was created.
|
|
386
|
+
"""
|
|
387
|
+
return pulumi.get(self, "create_time")
|
|
388
|
+
|
|
389
|
+
@create_time.setter
|
|
390
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
391
|
+
pulumi.set(self, "create_time", value)
|
|
392
|
+
|
|
304
393
|
@property
|
|
305
394
|
@pulumi.getter
|
|
306
395
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
307
396
|
"""
|
|
308
|
-
The
|
|
397
|
+
The description of the file system.
|
|
309
398
|
"""
|
|
310
399
|
return pulumi.get(self, "description")
|
|
311
400
|
|
|
@@ -317,8 +406,7 @@ class _FileSystemState:
|
|
|
317
406
|
@pulumi.getter(name="encryptType")
|
|
318
407
|
def encrypt_type(self) -> Optional[pulumi.Input[int]]:
|
|
319
408
|
"""
|
|
320
|
-
|
|
321
|
-
* Valid values:
|
|
409
|
+
Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
|
|
322
410
|
"""
|
|
323
411
|
return pulumi.get(self, "encrypt_type")
|
|
324
412
|
|
|
@@ -330,11 +418,7 @@ class _FileSystemState:
|
|
|
330
418
|
@pulumi.getter(name="fileSystemType")
|
|
331
419
|
def file_system_type(self) -> Optional[pulumi.Input[str]]:
|
|
332
420
|
"""
|
|
333
|
-
|
|
334
|
-
Valid values:
|
|
335
|
-
`standard` (Default),
|
|
336
|
-
`extreme`,
|
|
337
|
-
`cpfs`.
|
|
421
|
+
The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
|
|
338
422
|
"""
|
|
339
423
|
return pulumi.get(self, "file_system_type")
|
|
340
424
|
|
|
@@ -346,7 +430,7 @@ class _FileSystemState:
|
|
|
346
430
|
@pulumi.getter(name="kmsKeyId")
|
|
347
431
|
def kms_key_id(self) -> Optional[pulumi.Input[str]]:
|
|
348
432
|
"""
|
|
349
|
-
The
|
|
433
|
+
The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
|
|
350
434
|
"""
|
|
351
435
|
return pulumi.get(self, "kms_key_id")
|
|
352
436
|
|
|
@@ -354,15 +438,27 @@ class _FileSystemState:
|
|
|
354
438
|
def kms_key_id(self, value: Optional[pulumi.Input[str]]):
|
|
355
439
|
pulumi.set(self, "kms_key_id", value)
|
|
356
440
|
|
|
441
|
+
@property
|
|
442
|
+
@pulumi.getter(name="nfsAcl")
|
|
443
|
+
def nfs_acl(self) -> Optional[pulumi.Input['FileSystemNfsAclArgs']]:
|
|
444
|
+
"""
|
|
445
|
+
The NFS ACL feature of the file system. See `nfs_acl` below.
|
|
446
|
+
> **NOTE:** `nfs_acl` takes effect only if `file_system_type` is set to `standard`.
|
|
447
|
+
"""
|
|
448
|
+
return pulumi.get(self, "nfs_acl")
|
|
449
|
+
|
|
450
|
+
@nfs_acl.setter
|
|
451
|
+
def nfs_acl(self, value: Optional[pulumi.Input['FileSystemNfsAclArgs']]):
|
|
452
|
+
pulumi.set(self, "nfs_acl", value)
|
|
453
|
+
|
|
357
454
|
@property
|
|
358
455
|
@pulumi.getter(name="protocolType")
|
|
359
456
|
def protocol_type(self) -> Optional[pulumi.Input[str]]:
|
|
360
457
|
"""
|
|
361
|
-
The protocol type of the file system.
|
|
362
|
-
Valid values:
|
|
363
|
-
`NFS
|
|
364
|
-
`
|
|
365
|
-
`cpfs` (Available when the `file_system_type` is `cpfs`).
|
|
458
|
+
The protocol type of the file system. Valid values:
|
|
459
|
+
- If `file_system_type` is set to `standard`. Valid values: `NFS`, `SMB`.
|
|
460
|
+
- If `file_system_type` is set to `extreme`. Valid values: `NFS`.
|
|
461
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `cpfs`.
|
|
366
462
|
"""
|
|
367
463
|
return pulumi.get(self, "protocol_type")
|
|
368
464
|
|
|
@@ -370,14 +466,64 @@ class _FileSystemState:
|
|
|
370
466
|
def protocol_type(self, value: Optional[pulumi.Input[str]]):
|
|
371
467
|
pulumi.set(self, "protocol_type", value)
|
|
372
468
|
|
|
469
|
+
@property
|
|
470
|
+
@pulumi.getter(name="recycleBin")
|
|
471
|
+
def recycle_bin(self) -> Optional[pulumi.Input['FileSystemRecycleBinArgs']]:
|
|
472
|
+
"""
|
|
473
|
+
The recycle bin feature of the file system. See `recycle_bin` below.
|
|
474
|
+
> **NOTE:** `recycle_bin` takes effect only if `file_system_type` is set to `standard`.
|
|
475
|
+
"""
|
|
476
|
+
return pulumi.get(self, "recycle_bin")
|
|
477
|
+
|
|
478
|
+
@recycle_bin.setter
|
|
479
|
+
def recycle_bin(self, value: Optional[pulumi.Input['FileSystemRecycleBinArgs']]):
|
|
480
|
+
pulumi.set(self, "recycle_bin", value)
|
|
481
|
+
|
|
482
|
+
@property
|
|
483
|
+
@pulumi.getter(name="resourceGroupId")
|
|
484
|
+
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
485
|
+
"""
|
|
486
|
+
The ID of the resource group.
|
|
487
|
+
"""
|
|
488
|
+
return pulumi.get(self, "resource_group_id")
|
|
489
|
+
|
|
490
|
+
@resource_group_id.setter
|
|
491
|
+
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
492
|
+
pulumi.set(self, "resource_group_id", value)
|
|
493
|
+
|
|
494
|
+
@property
|
|
495
|
+
@pulumi.getter(name="snapshotId")
|
|
496
|
+
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
|
|
497
|
+
"""
|
|
498
|
+
The ID of the snapshot. **NOTE:** `snapshot_id` takes effect only if `file_system_type` is set to `extreme`.
|
|
499
|
+
"""
|
|
500
|
+
return pulumi.get(self, "snapshot_id")
|
|
501
|
+
|
|
502
|
+
@snapshot_id.setter
|
|
503
|
+
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
|
|
504
|
+
pulumi.set(self, "snapshot_id", value)
|
|
505
|
+
|
|
506
|
+
@property
|
|
507
|
+
@pulumi.getter
|
|
508
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
509
|
+
"""
|
|
510
|
+
(Available since v1.236.0) The status of the File System.
|
|
511
|
+
"""
|
|
512
|
+
return pulumi.get(self, "status")
|
|
513
|
+
|
|
514
|
+
@status.setter
|
|
515
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
516
|
+
pulumi.set(self, "status", value)
|
|
517
|
+
|
|
373
518
|
@property
|
|
374
519
|
@pulumi.getter(name="storageType")
|
|
375
520
|
def storage_type(self) -> Optional[pulumi.Input[str]]:
|
|
376
521
|
"""
|
|
377
|
-
The storage type of the file
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
522
|
+
The storage type of the file system. Valid values:
|
|
523
|
+
- If `file_system_type` is set to `standard`. Valid values: `Performance`, `Capacity`, `Premium`.
|
|
524
|
+
- If `file_system_type` is set to `extreme`. Valid values: `standard`, `advance`.
|
|
525
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `advance_100`, `advance_200`.
|
|
526
|
+
> **NOTE:** From version 1.140.0, `storage_type` can be set to `standard`, `advance`. From version 1.153.0, `storage_type` can be set to `advance_100`, `advance_200`. From version 1.236.0, `storage_type` can be set to `Premium`.
|
|
381
527
|
"""
|
|
382
528
|
return pulumi.get(self, "storage_type")
|
|
383
529
|
|
|
@@ -401,7 +547,7 @@ class _FileSystemState:
|
|
|
401
547
|
@pulumi.getter(name="vpcId")
|
|
402
548
|
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
403
549
|
"""
|
|
404
|
-
The
|
|
550
|
+
The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
405
551
|
"""
|
|
406
552
|
return pulumi.get(self, "vpc_id")
|
|
407
553
|
|
|
@@ -413,7 +559,7 @@ class _FileSystemState:
|
|
|
413
559
|
@pulumi.getter(name="vswitchId")
|
|
414
560
|
def vswitch_id(self) -> Optional[pulumi.Input[str]]:
|
|
415
561
|
"""
|
|
416
|
-
The
|
|
562
|
+
The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
417
563
|
"""
|
|
418
564
|
return pulumi.get(self, "vswitch_id")
|
|
419
565
|
|
|
@@ -425,7 +571,7 @@ class _FileSystemState:
|
|
|
425
571
|
@pulumi.getter(name="zoneId")
|
|
426
572
|
def zone_id(self) -> Optional[pulumi.Input[str]]:
|
|
427
573
|
"""
|
|
428
|
-
The
|
|
574
|
+
The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
|
|
429
575
|
"""
|
|
430
576
|
return pulumi.get(self, "zone_id")
|
|
431
577
|
|
|
@@ -444,7 +590,11 @@ class FileSystem(pulumi.CustomResource):
|
|
|
444
590
|
encrypt_type: Optional[pulumi.Input[int]] = None,
|
|
445
591
|
file_system_type: Optional[pulumi.Input[str]] = None,
|
|
446
592
|
kms_key_id: Optional[pulumi.Input[str]] = None,
|
|
593
|
+
nfs_acl: Optional[pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']]] = None,
|
|
447
594
|
protocol_type: Optional[pulumi.Input[str]] = None,
|
|
595
|
+
recycle_bin: Optional[pulumi.Input[Union['FileSystemRecycleBinArgs', 'FileSystemRecycleBinArgsDict']]] = None,
|
|
596
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
597
|
+
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
448
598
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
449
599
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
450
600
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -452,13 +602,11 @@ class FileSystem(pulumi.CustomResource):
|
|
|
452
602
|
zone_id: Optional[pulumi.Input[str]] = None,
|
|
453
603
|
__props__=None):
|
|
454
604
|
"""
|
|
455
|
-
Provides a
|
|
605
|
+
Provides a File Storage (NAS) File System resource.
|
|
456
606
|
|
|
457
|
-
|
|
607
|
+
For information about File Storage (NAS) File System and how to use it, see [What is File System](https://www.alibabacloud.com/help/en/nas/developer-reference/api-nas-2017-06-26-createfilesystem).
|
|
458
608
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
> **NOTE:** Available in v1.33.0+.
|
|
609
|
+
> **NOTE:** Available since v1.33.0.
|
|
462
610
|
|
|
463
611
|
## Example Usage
|
|
464
612
|
|
|
@@ -468,85 +616,108 @@ class FileSystem(pulumi.CustomResource):
|
|
|
468
616
|
import pulumi
|
|
469
617
|
import pulumi_alicloud as alicloud
|
|
470
618
|
|
|
471
|
-
|
|
472
|
-
|
|
619
|
+
config = pulumi.Config()
|
|
620
|
+
name = config.get("name")
|
|
621
|
+
if name is None:
|
|
622
|
+
name = "terraform-example"
|
|
623
|
+
default = alicloud.nas.get_zones(file_system_type="standard")
|
|
624
|
+
default_file_system = alicloud.nas.FileSystem("default",
|
|
473
625
|
protocol_type="NFS",
|
|
474
|
-
storage_type="
|
|
475
|
-
description=
|
|
626
|
+
storage_type="Capacity",
|
|
627
|
+
description=name,
|
|
476
628
|
encrypt_type=1,
|
|
477
|
-
|
|
629
|
+
file_system_type="standard",
|
|
630
|
+
recycle_bin={
|
|
631
|
+
"status": "Enable",
|
|
632
|
+
"reserved_days": 10,
|
|
633
|
+
},
|
|
634
|
+
nfs_acl={
|
|
635
|
+
"enabled": True,
|
|
636
|
+
},
|
|
637
|
+
zone_id=default.zones[0].zone_id)
|
|
478
638
|
```
|
|
479
639
|
|
|
480
640
|
```python
|
|
481
641
|
import pulumi
|
|
482
642
|
import pulumi_alicloud as alicloud
|
|
483
643
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
644
|
+
config = pulumi.Config()
|
|
645
|
+
name = config.get("name")
|
|
646
|
+
if name is None:
|
|
647
|
+
name = "terraform-example"
|
|
648
|
+
default = alicloud.nas.get_zones(file_system_type="extreme")
|
|
649
|
+
default_file_system = alicloud.nas.FileSystem("default",
|
|
487
650
|
protocol_type="NFS",
|
|
488
|
-
zone_id=example.zones[0].zone_id,
|
|
489
651
|
storage_type="standard",
|
|
490
|
-
capacity=100
|
|
652
|
+
capacity=100,
|
|
653
|
+
description=name,
|
|
654
|
+
encrypt_type=1,
|
|
655
|
+
file_system_type="extreme",
|
|
656
|
+
zone_id=default.zones[0].zone_id)
|
|
491
657
|
```
|
|
492
658
|
|
|
493
659
|
```python
|
|
494
660
|
import pulumi
|
|
495
661
|
import pulumi_alicloud as alicloud
|
|
496
662
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
663
|
+
config = pulumi.Config()
|
|
664
|
+
name = config.get("name")
|
|
665
|
+
if name is None:
|
|
666
|
+
name = "terraform-example"
|
|
667
|
+
default = alicloud.nas.get_zones(file_system_type="cpfs")
|
|
668
|
+
default_network = alicloud.vpc.Network("default",
|
|
669
|
+
vpc_name=name,
|
|
500
670
|
cidr_block="172.17.3.0/24")
|
|
501
|
-
|
|
502
|
-
vswitch_name=
|
|
671
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
672
|
+
vswitch_name=name,
|
|
503
673
|
cidr_block="172.17.3.0/24",
|
|
504
|
-
vpc_id=
|
|
505
|
-
zone_id=
|
|
506
|
-
|
|
674
|
+
vpc_id=default_network.id,
|
|
675
|
+
zone_id=default.zones[1].zone_id)
|
|
676
|
+
default_file_system = alicloud.nas.FileSystem("default",
|
|
507
677
|
protocol_type="cpfs",
|
|
508
|
-
storage_type="
|
|
678
|
+
storage_type="advance_100",
|
|
679
|
+
capacity=5000,
|
|
680
|
+
description=name,
|
|
509
681
|
file_system_type="cpfs",
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
vswitch_id=example_switch.id)
|
|
682
|
+
vswitch_id=default_switch.id,
|
|
683
|
+
vpc_id=default_network.id,
|
|
684
|
+
zone_id=default.zones[1].zone_id)
|
|
514
685
|
```
|
|
515
686
|
|
|
516
687
|
## Import
|
|
517
688
|
|
|
518
|
-
|
|
689
|
+
File Storage (NAS) File System can be imported using the id, e.g.
|
|
519
690
|
|
|
520
691
|
```sh
|
|
521
|
-
$ pulumi import alicloud:nas/fileSystem:FileSystem
|
|
692
|
+
$ pulumi import alicloud:nas/fileSystem:FileSystem example <id>
|
|
522
693
|
```
|
|
523
694
|
|
|
524
695
|
:param str resource_name: The name of the resource.
|
|
525
696
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
526
|
-
:param pulumi.Input[int] capacity: The capacity of the file system.
|
|
527
|
-
|
|
528
|
-
:param pulumi.Input[
|
|
529
|
-
:param pulumi.Input[
|
|
530
|
-
|
|
531
|
-
:param pulumi.Input[
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
`
|
|
535
|
-
`
|
|
536
|
-
|
|
537
|
-
:param pulumi.Input[
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
697
|
+
:param pulumi.Input[int] capacity: The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
|
|
698
|
+
:param pulumi.Input[str] description: The description of the file system.
|
|
699
|
+
:param pulumi.Input[int] encrypt_type: Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
|
|
700
|
+
:param pulumi.Input[str] file_system_type: The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
|
|
701
|
+
:param pulumi.Input[str] kms_key_id: The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
|
|
702
|
+
:param pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']] nfs_acl: The NFS ACL feature of the file system. See `nfs_acl` below.
|
|
703
|
+
> **NOTE:** `nfs_acl` takes effect only if `file_system_type` is set to `standard`.
|
|
704
|
+
:param pulumi.Input[str] protocol_type: The protocol type of the file system. Valid values:
|
|
705
|
+
- If `file_system_type` is set to `standard`. Valid values: `NFS`, `SMB`.
|
|
706
|
+
- If `file_system_type` is set to `extreme`. Valid values: `NFS`.
|
|
707
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `cpfs`.
|
|
708
|
+
:param pulumi.Input[Union['FileSystemRecycleBinArgs', 'FileSystemRecycleBinArgsDict']] recycle_bin: The recycle bin feature of the file system. See `recycle_bin` below.
|
|
709
|
+
> **NOTE:** `recycle_bin` takes effect only if `file_system_type` is set to `standard`.
|
|
710
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group.
|
|
711
|
+
:param pulumi.Input[str] snapshot_id: The ID of the snapshot. **NOTE:** `snapshot_id` takes effect only if `file_system_type` is set to `extreme`.
|
|
712
|
+
:param pulumi.Input[str] storage_type: The storage type of the file system. Valid values:
|
|
713
|
+
- If `file_system_type` is set to `standard`. Valid values: `Performance`, `Capacity`, `Premium`.
|
|
714
|
+
- If `file_system_type` is set to `extreme`. Valid values: `standard`, `advance`.
|
|
715
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `advance_100`, `advance_200`.
|
|
716
|
+
> **NOTE:** From version 1.140.0, `storage_type` can be set to `standard`, `advance`. From version 1.153.0, `storage_type` can be set to `advance_100`, `advance_200`. From version 1.236.0, `storage_type` can be set to `Premium`.
|
|
546
717
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
547
|
-
:param pulumi.Input[str] vpc_id: The
|
|
548
|
-
:param pulumi.Input[str] vswitch_id: The
|
|
549
|
-
:param pulumi.Input[str] zone_id: The
|
|
718
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
719
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
720
|
+
:param pulumi.Input[str] zone_id: The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
|
|
550
721
|
"""
|
|
551
722
|
...
|
|
552
723
|
@overload
|
|
@@ -555,13 +726,11 @@ class FileSystem(pulumi.CustomResource):
|
|
|
555
726
|
args: FileSystemArgs,
|
|
556
727
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
557
728
|
"""
|
|
558
|
-
Provides a
|
|
559
|
-
|
|
560
|
-
After activating NAS, you can create a file system and purchase a storage package for it in the NAS console. The NAS console also enables you to view the file system details and remove unnecessary file systems.
|
|
729
|
+
Provides a File Storage (NAS) File System resource.
|
|
561
730
|
|
|
562
|
-
For information about NAS
|
|
731
|
+
For information about File Storage (NAS) File System and how to use it, see [What is File System](https://www.alibabacloud.com/help/en/nas/developer-reference/api-nas-2017-06-26-createfilesystem).
|
|
563
732
|
|
|
564
|
-
> **NOTE:** Available
|
|
733
|
+
> **NOTE:** Available since v1.33.0.
|
|
565
734
|
|
|
566
735
|
## Example Usage
|
|
567
736
|
|
|
@@ -571,57 +740,80 @@ class FileSystem(pulumi.CustomResource):
|
|
|
571
740
|
import pulumi
|
|
572
741
|
import pulumi_alicloud as alicloud
|
|
573
742
|
|
|
574
|
-
|
|
575
|
-
|
|
743
|
+
config = pulumi.Config()
|
|
744
|
+
name = config.get("name")
|
|
745
|
+
if name is None:
|
|
746
|
+
name = "terraform-example"
|
|
747
|
+
default = alicloud.nas.get_zones(file_system_type="standard")
|
|
748
|
+
default_file_system = alicloud.nas.FileSystem("default",
|
|
576
749
|
protocol_type="NFS",
|
|
577
|
-
storage_type="
|
|
578
|
-
description=
|
|
750
|
+
storage_type="Capacity",
|
|
751
|
+
description=name,
|
|
579
752
|
encrypt_type=1,
|
|
580
|
-
|
|
753
|
+
file_system_type="standard",
|
|
754
|
+
recycle_bin={
|
|
755
|
+
"status": "Enable",
|
|
756
|
+
"reserved_days": 10,
|
|
757
|
+
},
|
|
758
|
+
nfs_acl={
|
|
759
|
+
"enabled": True,
|
|
760
|
+
},
|
|
761
|
+
zone_id=default.zones[0].zone_id)
|
|
581
762
|
```
|
|
582
763
|
|
|
583
764
|
```python
|
|
584
765
|
import pulumi
|
|
585
766
|
import pulumi_alicloud as alicloud
|
|
586
767
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
768
|
+
config = pulumi.Config()
|
|
769
|
+
name = config.get("name")
|
|
770
|
+
if name is None:
|
|
771
|
+
name = "terraform-example"
|
|
772
|
+
default = alicloud.nas.get_zones(file_system_type="extreme")
|
|
773
|
+
default_file_system = alicloud.nas.FileSystem("default",
|
|
590
774
|
protocol_type="NFS",
|
|
591
|
-
zone_id=example.zones[0].zone_id,
|
|
592
775
|
storage_type="standard",
|
|
593
|
-
capacity=100
|
|
776
|
+
capacity=100,
|
|
777
|
+
description=name,
|
|
778
|
+
encrypt_type=1,
|
|
779
|
+
file_system_type="extreme",
|
|
780
|
+
zone_id=default.zones[0].zone_id)
|
|
594
781
|
```
|
|
595
782
|
|
|
596
783
|
```python
|
|
597
784
|
import pulumi
|
|
598
785
|
import pulumi_alicloud as alicloud
|
|
599
786
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
787
|
+
config = pulumi.Config()
|
|
788
|
+
name = config.get("name")
|
|
789
|
+
if name is None:
|
|
790
|
+
name = "terraform-example"
|
|
791
|
+
default = alicloud.nas.get_zones(file_system_type="cpfs")
|
|
792
|
+
default_network = alicloud.vpc.Network("default",
|
|
793
|
+
vpc_name=name,
|
|
603
794
|
cidr_block="172.17.3.0/24")
|
|
604
|
-
|
|
605
|
-
vswitch_name=
|
|
795
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
796
|
+
vswitch_name=name,
|
|
606
797
|
cidr_block="172.17.3.0/24",
|
|
607
|
-
vpc_id=
|
|
608
|
-
zone_id=
|
|
609
|
-
|
|
798
|
+
vpc_id=default_network.id,
|
|
799
|
+
zone_id=default.zones[1].zone_id)
|
|
800
|
+
default_file_system = alicloud.nas.FileSystem("default",
|
|
610
801
|
protocol_type="cpfs",
|
|
611
|
-
storage_type="
|
|
802
|
+
storage_type="advance_100",
|
|
803
|
+
capacity=5000,
|
|
804
|
+
description=name,
|
|
612
805
|
file_system_type="cpfs",
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
vswitch_id=example_switch.id)
|
|
806
|
+
vswitch_id=default_switch.id,
|
|
807
|
+
vpc_id=default_network.id,
|
|
808
|
+
zone_id=default.zones[1].zone_id)
|
|
617
809
|
```
|
|
618
810
|
|
|
619
811
|
## Import
|
|
620
812
|
|
|
621
|
-
|
|
813
|
+
File Storage (NAS) File System can be imported using the id, e.g.
|
|
622
814
|
|
|
623
815
|
```sh
|
|
624
|
-
$ pulumi import alicloud:nas/fileSystem:FileSystem
|
|
816
|
+
$ pulumi import alicloud:nas/fileSystem:FileSystem example <id>
|
|
625
817
|
```
|
|
626
818
|
|
|
627
819
|
:param str resource_name: The name of the resource.
|
|
@@ -644,7 +836,11 @@ class FileSystem(pulumi.CustomResource):
|
|
|
644
836
|
encrypt_type: Optional[pulumi.Input[int]] = None,
|
|
645
837
|
file_system_type: Optional[pulumi.Input[str]] = None,
|
|
646
838
|
kms_key_id: Optional[pulumi.Input[str]] = None,
|
|
839
|
+
nfs_acl: Optional[pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']]] = None,
|
|
647
840
|
protocol_type: Optional[pulumi.Input[str]] = None,
|
|
841
|
+
recycle_bin: Optional[pulumi.Input[Union['FileSystemRecycleBinArgs', 'FileSystemRecycleBinArgsDict']]] = None,
|
|
842
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
843
|
+
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
648
844
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
649
845
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
650
846
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -664,9 +860,13 @@ class FileSystem(pulumi.CustomResource):
|
|
|
664
860
|
__props__.__dict__["encrypt_type"] = encrypt_type
|
|
665
861
|
__props__.__dict__["file_system_type"] = file_system_type
|
|
666
862
|
__props__.__dict__["kms_key_id"] = kms_key_id
|
|
863
|
+
__props__.__dict__["nfs_acl"] = nfs_acl
|
|
667
864
|
if protocol_type is None and not opts.urn:
|
|
668
865
|
raise TypeError("Missing required property 'protocol_type'")
|
|
669
866
|
__props__.__dict__["protocol_type"] = protocol_type
|
|
867
|
+
__props__.__dict__["recycle_bin"] = recycle_bin
|
|
868
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
869
|
+
__props__.__dict__["snapshot_id"] = snapshot_id
|
|
670
870
|
if storage_type is None and not opts.urn:
|
|
671
871
|
raise TypeError("Missing required property 'storage_type'")
|
|
672
872
|
__props__.__dict__["storage_type"] = storage_type
|
|
@@ -674,6 +874,8 @@ class FileSystem(pulumi.CustomResource):
|
|
|
674
874
|
__props__.__dict__["vpc_id"] = vpc_id
|
|
675
875
|
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
676
876
|
__props__.__dict__["zone_id"] = zone_id
|
|
877
|
+
__props__.__dict__["create_time"] = None
|
|
878
|
+
__props__.__dict__["status"] = None
|
|
677
879
|
super(FileSystem, __self__).__init__(
|
|
678
880
|
'alicloud:nas/fileSystem:FileSystem',
|
|
679
881
|
resource_name,
|
|
@@ -685,11 +887,17 @@ class FileSystem(pulumi.CustomResource):
|
|
|
685
887
|
id: pulumi.Input[str],
|
|
686
888
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
687
889
|
capacity: Optional[pulumi.Input[int]] = None,
|
|
890
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
688
891
|
description: Optional[pulumi.Input[str]] = None,
|
|
689
892
|
encrypt_type: Optional[pulumi.Input[int]] = None,
|
|
690
893
|
file_system_type: Optional[pulumi.Input[str]] = None,
|
|
691
894
|
kms_key_id: Optional[pulumi.Input[str]] = None,
|
|
895
|
+
nfs_acl: Optional[pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']]] = None,
|
|
692
896
|
protocol_type: Optional[pulumi.Input[str]] = None,
|
|
897
|
+
recycle_bin: Optional[pulumi.Input[Union['FileSystemRecycleBinArgs', 'FileSystemRecycleBinArgsDict']]] = None,
|
|
898
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
899
|
+
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
900
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
693
901
|
storage_type: Optional[pulumi.Input[str]] = None,
|
|
694
902
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
695
903
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -702,41 +910,49 @@ class FileSystem(pulumi.CustomResource):
|
|
|
702
910
|
:param str resource_name: The unique name of the resulting resource.
|
|
703
911
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
704
912
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
705
|
-
:param pulumi.Input[int] capacity: The capacity of the file system.
|
|
706
|
-
|
|
707
|
-
:param pulumi.Input[str] description: The
|
|
708
|
-
:param pulumi.Input[int] encrypt_type:
|
|
709
|
-
|
|
710
|
-
:param pulumi.Input[str]
|
|
711
|
-
|
|
712
|
-
`
|
|
713
|
-
|
|
714
|
-
`
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
`
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
:param pulumi.Input[str]
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
913
|
+
:param pulumi.Input[int] capacity: The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
|
|
914
|
+
:param pulumi.Input[str] create_time: (Available since v1.236.0) The time when the file system was created.
|
|
915
|
+
:param pulumi.Input[str] description: The description of the file system.
|
|
916
|
+
:param pulumi.Input[int] encrypt_type: Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
|
|
917
|
+
:param pulumi.Input[str] file_system_type: The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
|
|
918
|
+
:param pulumi.Input[str] kms_key_id: The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
|
|
919
|
+
:param pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']] nfs_acl: The NFS ACL feature of the file system. See `nfs_acl` below.
|
|
920
|
+
> **NOTE:** `nfs_acl` takes effect only if `file_system_type` is set to `standard`.
|
|
921
|
+
:param pulumi.Input[str] protocol_type: The protocol type of the file system. Valid values:
|
|
922
|
+
- If `file_system_type` is set to `standard`. Valid values: `NFS`, `SMB`.
|
|
923
|
+
- If `file_system_type` is set to `extreme`. Valid values: `NFS`.
|
|
924
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `cpfs`.
|
|
925
|
+
:param pulumi.Input[Union['FileSystemRecycleBinArgs', 'FileSystemRecycleBinArgsDict']] recycle_bin: The recycle bin feature of the file system. See `recycle_bin` below.
|
|
926
|
+
> **NOTE:** `recycle_bin` takes effect only if `file_system_type` is set to `standard`.
|
|
927
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group.
|
|
928
|
+
:param pulumi.Input[str] snapshot_id: The ID of the snapshot. **NOTE:** `snapshot_id` takes effect only if `file_system_type` is set to `extreme`.
|
|
929
|
+
:param pulumi.Input[str] status: (Available since v1.236.0) The status of the File System.
|
|
930
|
+
:param pulumi.Input[str] storage_type: The storage type of the file system. Valid values:
|
|
931
|
+
- If `file_system_type` is set to `standard`. Valid values: `Performance`, `Capacity`, `Premium`.
|
|
932
|
+
- If `file_system_type` is set to `extreme`. Valid values: `standard`, `advance`.
|
|
933
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `advance_100`, `advance_200`.
|
|
934
|
+
> **NOTE:** From version 1.140.0, `storage_type` can be set to `standard`, `advance`. From version 1.153.0, `storage_type` can be set to `advance_100`, `advance_200`. From version 1.236.0, `storage_type` can be set to `Premium`.
|
|
725
935
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
726
|
-
:param pulumi.Input[str] vpc_id: The
|
|
727
|
-
:param pulumi.Input[str] vswitch_id: The
|
|
728
|
-
:param pulumi.Input[str] zone_id: The
|
|
936
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
937
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
938
|
+
:param pulumi.Input[str] zone_id: The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
|
|
729
939
|
"""
|
|
730
940
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
731
941
|
|
|
732
942
|
__props__ = _FileSystemState.__new__(_FileSystemState)
|
|
733
943
|
|
|
734
944
|
__props__.__dict__["capacity"] = capacity
|
|
945
|
+
__props__.__dict__["create_time"] = create_time
|
|
735
946
|
__props__.__dict__["description"] = description
|
|
736
947
|
__props__.__dict__["encrypt_type"] = encrypt_type
|
|
737
948
|
__props__.__dict__["file_system_type"] = file_system_type
|
|
738
949
|
__props__.__dict__["kms_key_id"] = kms_key_id
|
|
950
|
+
__props__.__dict__["nfs_acl"] = nfs_acl
|
|
739
951
|
__props__.__dict__["protocol_type"] = protocol_type
|
|
952
|
+
__props__.__dict__["recycle_bin"] = recycle_bin
|
|
953
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
954
|
+
__props__.__dict__["snapshot_id"] = snapshot_id
|
|
955
|
+
__props__.__dict__["status"] = status
|
|
740
956
|
__props__.__dict__["storage_type"] = storage_type
|
|
741
957
|
__props__.__dict__["tags"] = tags
|
|
742
958
|
__props__.__dict__["vpc_id"] = vpc_id
|
|
@@ -748,16 +964,23 @@ class FileSystem(pulumi.CustomResource):
|
|
|
748
964
|
@pulumi.getter
|
|
749
965
|
def capacity(self) -> pulumi.Output[int]:
|
|
750
966
|
"""
|
|
751
|
-
The capacity of the file system.
|
|
752
|
-
Unit: gib; **Note**: The minimum value is 100.
|
|
967
|
+
The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
|
|
753
968
|
"""
|
|
754
969
|
return pulumi.get(self, "capacity")
|
|
755
970
|
|
|
971
|
+
@property
|
|
972
|
+
@pulumi.getter(name="createTime")
|
|
973
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
974
|
+
"""
|
|
975
|
+
(Available since v1.236.0) The time when the file system was created.
|
|
976
|
+
"""
|
|
977
|
+
return pulumi.get(self, "create_time")
|
|
978
|
+
|
|
756
979
|
@property
|
|
757
980
|
@pulumi.getter
|
|
758
981
|
def description(self) -> pulumi.Output[Optional[str]]:
|
|
759
982
|
"""
|
|
760
|
-
The
|
|
983
|
+
The description of the file system.
|
|
761
984
|
"""
|
|
762
985
|
return pulumi.get(self, "description")
|
|
763
986
|
|
|
@@ -765,20 +988,15 @@ class FileSystem(pulumi.CustomResource):
|
|
|
765
988
|
@pulumi.getter(name="encryptType")
|
|
766
989
|
def encrypt_type(self) -> pulumi.Output[Optional[int]]:
|
|
767
990
|
"""
|
|
768
|
-
|
|
769
|
-
* Valid values:
|
|
991
|
+
Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
|
|
770
992
|
"""
|
|
771
993
|
return pulumi.get(self, "encrypt_type")
|
|
772
994
|
|
|
773
995
|
@property
|
|
774
996
|
@pulumi.getter(name="fileSystemType")
|
|
775
|
-
def file_system_type(self) -> pulumi.Output[
|
|
997
|
+
def file_system_type(self) -> pulumi.Output[str]:
|
|
776
998
|
"""
|
|
777
|
-
|
|
778
|
-
Valid values:
|
|
779
|
-
`standard` (Default),
|
|
780
|
-
`extreme`,
|
|
781
|
-
`cpfs`.
|
|
999
|
+
The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
|
|
782
1000
|
"""
|
|
783
1001
|
return pulumi.get(self, "file_system_type")
|
|
784
1002
|
|
|
@@ -786,30 +1004,72 @@ class FileSystem(pulumi.CustomResource):
|
|
|
786
1004
|
@pulumi.getter(name="kmsKeyId")
|
|
787
1005
|
def kms_key_id(self) -> pulumi.Output[str]:
|
|
788
1006
|
"""
|
|
789
|
-
The
|
|
1007
|
+
The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
|
|
790
1008
|
"""
|
|
791
1009
|
return pulumi.get(self, "kms_key_id")
|
|
792
1010
|
|
|
1011
|
+
@property
|
|
1012
|
+
@pulumi.getter(name="nfsAcl")
|
|
1013
|
+
def nfs_acl(self) -> pulumi.Output['outputs.FileSystemNfsAcl']:
|
|
1014
|
+
"""
|
|
1015
|
+
The NFS ACL feature of the file system. See `nfs_acl` below.
|
|
1016
|
+
> **NOTE:** `nfs_acl` takes effect only if `file_system_type` is set to `standard`.
|
|
1017
|
+
"""
|
|
1018
|
+
return pulumi.get(self, "nfs_acl")
|
|
1019
|
+
|
|
793
1020
|
@property
|
|
794
1021
|
@pulumi.getter(name="protocolType")
|
|
795
1022
|
def protocol_type(self) -> pulumi.Output[str]:
|
|
796
1023
|
"""
|
|
797
|
-
The protocol type of the file system.
|
|
798
|
-
Valid values:
|
|
799
|
-
`NFS
|
|
800
|
-
`
|
|
801
|
-
`cpfs` (Available when the `file_system_type` is `cpfs`).
|
|
1024
|
+
The protocol type of the file system. Valid values:
|
|
1025
|
+
- If `file_system_type` is set to `standard`. Valid values: `NFS`, `SMB`.
|
|
1026
|
+
- If `file_system_type` is set to `extreme`. Valid values: `NFS`.
|
|
1027
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `cpfs`.
|
|
802
1028
|
"""
|
|
803
1029
|
return pulumi.get(self, "protocol_type")
|
|
804
1030
|
|
|
1031
|
+
@property
|
|
1032
|
+
@pulumi.getter(name="recycleBin")
|
|
1033
|
+
def recycle_bin(self) -> pulumi.Output['outputs.FileSystemRecycleBin']:
|
|
1034
|
+
"""
|
|
1035
|
+
The recycle bin feature of the file system. See `recycle_bin` below.
|
|
1036
|
+
> **NOTE:** `recycle_bin` takes effect only if `file_system_type` is set to `standard`.
|
|
1037
|
+
"""
|
|
1038
|
+
return pulumi.get(self, "recycle_bin")
|
|
1039
|
+
|
|
1040
|
+
@property
|
|
1041
|
+
@pulumi.getter(name="resourceGroupId")
|
|
1042
|
+
def resource_group_id(self) -> pulumi.Output[str]:
|
|
1043
|
+
"""
|
|
1044
|
+
The ID of the resource group.
|
|
1045
|
+
"""
|
|
1046
|
+
return pulumi.get(self, "resource_group_id")
|
|
1047
|
+
|
|
1048
|
+
@property
|
|
1049
|
+
@pulumi.getter(name="snapshotId")
|
|
1050
|
+
def snapshot_id(self) -> pulumi.Output[Optional[str]]:
|
|
1051
|
+
"""
|
|
1052
|
+
The ID of the snapshot. **NOTE:** `snapshot_id` takes effect only if `file_system_type` is set to `extreme`.
|
|
1053
|
+
"""
|
|
1054
|
+
return pulumi.get(self, "snapshot_id")
|
|
1055
|
+
|
|
1056
|
+
@property
|
|
1057
|
+
@pulumi.getter
|
|
1058
|
+
def status(self) -> pulumi.Output[str]:
|
|
1059
|
+
"""
|
|
1060
|
+
(Available since v1.236.0) The status of the File System.
|
|
1061
|
+
"""
|
|
1062
|
+
return pulumi.get(self, "status")
|
|
1063
|
+
|
|
805
1064
|
@property
|
|
806
1065
|
@pulumi.getter(name="storageType")
|
|
807
1066
|
def storage_type(self) -> pulumi.Output[str]:
|
|
808
1067
|
"""
|
|
809
|
-
The storage type of the file
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1068
|
+
The storage type of the file system. Valid values:
|
|
1069
|
+
- If `file_system_type` is set to `standard`. Valid values: `Performance`, `Capacity`, `Premium`.
|
|
1070
|
+
- If `file_system_type` is set to `extreme`. Valid values: `standard`, `advance`.
|
|
1071
|
+
- If `file_system_type` is set to `cpfs`. Valid values: `advance_100`, `advance_200`.
|
|
1072
|
+
> **NOTE:** From version 1.140.0, `storage_type` can be set to `standard`, `advance`. From version 1.153.0, `storage_type` can be set to `advance_100`, `advance_200`. From version 1.236.0, `storage_type` can be set to `Premium`.
|
|
813
1073
|
"""
|
|
814
1074
|
return pulumi.get(self, "storage_type")
|
|
815
1075
|
|
|
@@ -825,7 +1085,7 @@ class FileSystem(pulumi.CustomResource):
|
|
|
825
1085
|
@pulumi.getter(name="vpcId")
|
|
826
1086
|
def vpc_id(self) -> pulumi.Output[Optional[str]]:
|
|
827
1087
|
"""
|
|
828
|
-
The
|
|
1088
|
+
The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
829
1089
|
"""
|
|
830
1090
|
return pulumi.get(self, "vpc_id")
|
|
831
1091
|
|
|
@@ -833,7 +1093,7 @@ class FileSystem(pulumi.CustomResource):
|
|
|
833
1093
|
@pulumi.getter(name="vswitchId")
|
|
834
1094
|
def vswitch_id(self) -> pulumi.Output[Optional[str]]:
|
|
835
1095
|
"""
|
|
836
|
-
The
|
|
1096
|
+
The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
|
|
837
1097
|
"""
|
|
838
1098
|
return pulumi.get(self, "vswitch_id")
|
|
839
1099
|
|
|
@@ -841,7 +1101,7 @@ class FileSystem(pulumi.CustomResource):
|
|
|
841
1101
|
@pulumi.getter(name="zoneId")
|
|
842
1102
|
def zone_id(self) -> pulumi.Output[str]:
|
|
843
1103
|
"""
|
|
844
|
-
The
|
|
1104
|
+
The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
|
|
845
1105
|
"""
|
|
846
1106
|
return pulumi.get(self, "zone_id")
|
|
847
1107
|
|