pulumi-alicloud 3.68.0__py3-none-any.whl → 3.68.0a1732277964__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.

Files changed (45) hide show
  1. pulumi_alicloud/__init__.py +0 -40
  2. pulumi_alicloud/cdn/_inputs.py +23 -3
  3. pulumi_alicloud/cdn/domain_new.py +51 -93
  4. pulumi_alicloud/cdn/outputs.py +16 -2
  5. pulumi_alicloud/cdn/real_time_log_delivery.py +46 -97
  6. pulumi_alicloud/cen/get_flowlogs.py +35 -250
  7. pulumi_alicloud/cen/outputs.py +17 -116
  8. pulumi_alicloud/cs/node_pool.py +0 -7
  9. pulumi_alicloud/ecs/_inputs.py +0 -92
  10. pulumi_alicloud/ecs/auto_snapshot_policy.py +129 -323
  11. pulumi_alicloud/ecs/outputs.py +0 -88
  12. pulumi_alicloud/ecs/snapshot_policy.py +1 -154
  13. pulumi_alicloud/emrv2/_inputs.py +21 -875
  14. pulumi_alicloud/emrv2/cluster.py +0 -47
  15. pulumi_alicloud/emrv2/outputs.py +14 -580
  16. pulumi_alicloud/gwlb/__init__.py +0 -1
  17. pulumi_alicloud/gwlb/_inputs.py +126 -147
  18. pulumi_alicloud/gwlb/listener.py +50 -50
  19. pulumi_alicloud/gwlb/load_balancer.py +71 -78
  20. pulumi_alicloud/gwlb/outputs.py +84 -139
  21. pulumi_alicloud/gwlb/server_group.py +113 -162
  22. pulumi_alicloud/kvstore/audit_log_config.py +7 -7
  23. pulumi_alicloud/kvstore/backup_policy.py +9 -9
  24. pulumi_alicloud/kvstore/get_instance_classes.py +8 -8
  25. pulumi_alicloud/kvstore/get_instances.py +7 -9
  26. pulumi_alicloud/kvstore/instance.py +21 -21
  27. pulumi_alicloud/kvstore/outputs.py +6 -6
  28. pulumi_alicloud/nas/_inputs.py +0 -148
  29. pulumi_alicloud/nas/file_system.py +222 -482
  30. pulumi_alicloud/nas/outputs.py +0 -109
  31. pulumi_alicloud/pai/__init__.py +0 -7
  32. pulumi_alicloud/pai/workspace_workspace.py +6 -6
  33. pulumi_alicloud/pulumi-plugin.json +1 -1
  34. {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732277964.dist-info}/METADATA +1 -1
  35. {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732277964.dist-info}/RECORD +37 -45
  36. pulumi_alicloud/gwlb/get_zones.py +0 -173
  37. pulumi_alicloud/pai/_inputs.py +0 -129
  38. pulumi_alicloud/pai/outputs.py +0 -83
  39. pulumi_alicloud/pai/workspace_code_source.py +0 -702
  40. pulumi_alicloud/pai/workspace_dataset.py +0 -1081
  41. pulumi_alicloud/pai/workspace_datasetversion.py +0 -818
  42. pulumi_alicloud/pai/workspace_experiment.py +0 -394
  43. pulumi_alicloud/pai/workspace_run.py +0 -344
  44. {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732277964.dist-info}/WHEEL +0 -0
  45. {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732277964.dist-info}/top_level.txt +0 -0
@@ -13,8 +13,6 @@ 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 *
18
16
 
19
17
  __all__ = ['FileSystemArgs', 'FileSystem']
20
18
 
@@ -28,40 +26,36 @@ class FileSystemArgs:
28
26
  encrypt_type: Optional[pulumi.Input[int]] = None,
29
27
  file_system_type: Optional[pulumi.Input[str]] = None,
30
28
  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,
35
29
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
36
30
  vpc_id: Optional[pulumi.Input[str]] = None,
37
31
  vswitch_id: Optional[pulumi.Input[str]] = None,
38
32
  zone_id: Optional[pulumi.Input[str]] = None):
39
33
  """
40
34
  The set of arguments for constructing a FileSystem resource.
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`.
35
+ :param pulumi.Input[str] protocol_type: The protocol type of the file system.
36
+ Valid values:
37
+ `NFS`,
38
+ `SMB` (Available when the `file_system_type` is `standard`),
39
+ `cpfs` (Available when the `file_system_type` is `cpfs`).
40
+ :param pulumi.Input[str] storage_type: The storage type of the file System.
41
+ * Valid values:
42
+ * `Performance` (Available when the `file_system_type` is `standard`)
43
+ * `Capacity` (Available when the `file_system_type` is `standard`)
44
+ :param pulumi.Input[int] capacity: The capacity of the file system. The `capacity` is required when the `file_system_type` is `extreme`.
45
+ Unit: gib; **Note**: The minimum value is 100.
46
+ :param pulumi.Input[str] description: The File System description.
47
+ :param pulumi.Input[int] encrypt_type: Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
48
+ * Valid values:
49
+ :param pulumi.Input[str] file_system_type: the type of the file system.
50
+ Valid values:
51
+ `standard` (Default),
52
+ `extreme`,
53
+ `cpfs`.
54
+ :param pulumi.Input[str] kms_key_id: The id of the KMS key. The `kms_key_id` is required when the `encrypt_type` is `2`.
61
55
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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.
56
+ :param pulumi.Input[str] vpc_id: The id of the VPC. The `vpc_id` is required when the `file_system_type` is `cpfs`.
57
+ :param pulumi.Input[str] vswitch_id: The id of the vSwitch. The `vswitch_id` is required when the `file_system_type` is `cpfs`.
58
+ :param pulumi.Input[str] zone_id: The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. **Note:** By default, a qualified availability zone is randomly selected according to the `protocol_type` and `storage_type` configuration.
65
59
  """
66
60
  pulumi.set(__self__, "protocol_type", protocol_type)
67
61
  pulumi.set(__self__, "storage_type", storage_type)
@@ -75,14 +69,6 @@ class FileSystemArgs:
75
69
  pulumi.set(__self__, "file_system_type", file_system_type)
76
70
  if kms_key_id is not None:
77
71
  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)
86
72
  if tags is not None:
87
73
  pulumi.set(__self__, "tags", tags)
88
74
  if vpc_id is not None:
@@ -96,10 +82,11 @@ class FileSystemArgs:
96
82
  @pulumi.getter(name="protocolType")
97
83
  def protocol_type(self) -> pulumi.Input[str]:
98
84
  """
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`.
85
+ The protocol type of the file system.
86
+ Valid values:
87
+ `NFS`,
88
+ `SMB` (Available when the `file_system_type` is `standard`),
89
+ `cpfs` (Available when the `file_system_type` is `cpfs`).
103
90
  """
104
91
  return pulumi.get(self, "protocol_type")
105
92
 
@@ -111,11 +98,10 @@ class FileSystemArgs:
111
98
  @pulumi.getter(name="storageType")
112
99
  def storage_type(self) -> pulumi.Input[str]:
113
100
  """
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`.
101
+ The storage type of the file System.
102
+ * Valid values:
103
+ * `Performance` (Available when the `file_system_type` is `standard`)
104
+ * `Capacity` (Available when the `file_system_type` is `standard`)
119
105
  """
120
106
  return pulumi.get(self, "storage_type")
121
107
 
@@ -127,7 +113,8 @@ class FileSystemArgs:
127
113
  @pulumi.getter
128
114
  def capacity(self) -> Optional[pulumi.Input[int]]:
129
115
  """
130
- The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
116
+ The capacity of the file system. The `capacity` is required when the `file_system_type` is `extreme`.
117
+ Unit: gib; **Note**: The minimum value is 100.
131
118
  """
132
119
  return pulumi.get(self, "capacity")
133
120
 
@@ -139,7 +126,7 @@ class FileSystemArgs:
139
126
  @pulumi.getter
140
127
  def description(self) -> Optional[pulumi.Input[str]]:
141
128
  """
142
- The description of the file system.
129
+ The File System description.
143
130
  """
144
131
  return pulumi.get(self, "description")
145
132
 
@@ -151,7 +138,8 @@ class FileSystemArgs:
151
138
  @pulumi.getter(name="encryptType")
152
139
  def encrypt_type(self) -> Optional[pulumi.Input[int]]:
153
140
  """
154
- Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
141
+ Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
142
+ * Valid values:
155
143
  """
156
144
  return pulumi.get(self, "encrypt_type")
157
145
 
@@ -163,7 +151,11 @@ class FileSystemArgs:
163
151
  @pulumi.getter(name="fileSystemType")
164
152
  def file_system_type(self) -> Optional[pulumi.Input[str]]:
165
153
  """
166
- The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
154
+ the type of the file system.
155
+ Valid values:
156
+ `standard` (Default),
157
+ `extreme`,
158
+ `cpfs`.
167
159
  """
168
160
  return pulumi.get(self, "file_system_type")
169
161
 
@@ -175,7 +167,7 @@ class FileSystemArgs:
175
167
  @pulumi.getter(name="kmsKeyId")
176
168
  def kms_key_id(self) -> Optional[pulumi.Input[str]]:
177
169
  """
178
- The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
170
+ The id of the KMS key. The `kms_key_id` is required when the `encrypt_type` is `2`.
179
171
  """
180
172
  return pulumi.get(self, "kms_key_id")
181
173
 
@@ -183,56 +175,6 @@ class FileSystemArgs:
183
175
  def kms_key_id(self, value: Optional[pulumi.Input[str]]):
184
176
  pulumi.set(self, "kms_key_id", value)
185
177
 
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
-
236
178
  @property
237
179
  @pulumi.getter
238
180
  def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
@@ -249,7 +191,7 @@ class FileSystemArgs:
249
191
  @pulumi.getter(name="vpcId")
250
192
  def vpc_id(self) -> Optional[pulumi.Input[str]]:
251
193
  """
252
- The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
194
+ The id of the VPC. The `vpc_id` is required when the `file_system_type` is `cpfs`.
253
195
  """
254
196
  return pulumi.get(self, "vpc_id")
255
197
 
@@ -261,7 +203,7 @@ class FileSystemArgs:
261
203
  @pulumi.getter(name="vswitchId")
262
204
  def vswitch_id(self) -> Optional[pulumi.Input[str]]:
263
205
  """
264
- The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
206
+ The id of the vSwitch. The `vswitch_id` is required when the `file_system_type` is `cpfs`.
265
207
  """
266
208
  return pulumi.get(self, "vswitch_id")
267
209
 
@@ -273,7 +215,7 @@ class FileSystemArgs:
273
215
  @pulumi.getter(name="zoneId")
274
216
  def zone_id(self) -> Optional[pulumi.Input[str]]:
275
217
  """
276
- The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
218
+ The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. **Note:** By default, a qualified availability zone is randomly selected according to the `protocol_type` and `storage_type` configuration.
277
219
  """
278
220
  return pulumi.get(self, "zone_id")
279
221
 
@@ -286,17 +228,11 @@ class FileSystemArgs:
286
228
  class _FileSystemState:
287
229
  def __init__(__self__, *,
288
230
  capacity: Optional[pulumi.Input[int]] = None,
289
- create_time: Optional[pulumi.Input[str]] = None,
290
231
  description: Optional[pulumi.Input[str]] = None,
291
232
  encrypt_type: Optional[pulumi.Input[int]] = None,
292
233
  file_system_type: Optional[pulumi.Input[str]] = None,
293
234
  kms_key_id: Optional[pulumi.Input[str]] = None,
294
- nfs_acl: Optional[pulumi.Input['FileSystemNfsAclArgs']] = None,
295
235
  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,
300
236
  storage_type: Optional[pulumi.Input[str]] = None,
301
237
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
302
238
  vpc_id: Optional[pulumi.Input[str]] = None,
@@ -304,37 +240,33 @@ class _FileSystemState:
304
240
  zone_id: Optional[pulumi.Input[str]] = None):
305
241
  """
306
242
  Input properties used for looking up and filtering FileSystem resources.
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`.
243
+ :param pulumi.Input[int] capacity: The capacity of the file system. The `capacity` is required when the `file_system_type` is `extreme`.
244
+ Unit: gib; **Note**: The minimum value is 100.
245
+ :param pulumi.Input[str] description: The File System description.
246
+ :param pulumi.Input[int] encrypt_type: Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
247
+ * Valid values:
248
+ :param pulumi.Input[str] file_system_type: the type of the file system.
249
+ Valid values:
250
+ `standard` (Default),
251
+ `extreme`,
252
+ `cpfs`.
253
+ :param pulumi.Input[str] kms_key_id: The id of the KMS key. The `kms_key_id` is required when the `encrypt_type` is `2`.
254
+ :param pulumi.Input[str] protocol_type: The protocol type of the file system.
255
+ Valid values:
256
+ `NFS`,
257
+ `SMB` (Available when the `file_system_type` is `standard`),
258
+ `cpfs` (Available when the `file_system_type` is `cpfs`).
259
+ :param pulumi.Input[str] storage_type: The storage type of the file System.
260
+ * Valid values:
261
+ * `Performance` (Available when the `file_system_type` is `standard`)
262
+ * `Capacity` (Available when the `file_system_type` is `standard`)
329
263
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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.
264
+ :param pulumi.Input[str] vpc_id: The id of the VPC. The `vpc_id` is required when the `file_system_type` is `cpfs`.
265
+ :param pulumi.Input[str] vswitch_id: The id of the vSwitch. The `vswitch_id` is required when the `file_system_type` is `cpfs`.
266
+ :param pulumi.Input[str] zone_id: The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. **Note:** By default, a qualified availability zone is randomly selected according to the `protocol_type` and `storage_type` configuration.
333
267
  """
334
268
  if capacity is not None:
335
269
  pulumi.set(__self__, "capacity", capacity)
336
- if create_time is not None:
337
- pulumi.set(__self__, "create_time", create_time)
338
270
  if description is not None:
339
271
  pulumi.set(__self__, "description", description)
340
272
  if encrypt_type is not None:
@@ -343,18 +275,8 @@ class _FileSystemState:
343
275
  pulumi.set(__self__, "file_system_type", file_system_type)
344
276
  if kms_key_id is not None:
345
277
  pulumi.set(__self__, "kms_key_id", kms_key_id)
346
- if nfs_acl is not None:
347
- pulumi.set(__self__, "nfs_acl", nfs_acl)
348
278
  if protocol_type is not None:
349
279
  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)
358
280
  if storage_type is not None:
359
281
  pulumi.set(__self__, "storage_type", storage_type)
360
282
  if tags is not None:
@@ -370,7 +292,8 @@ class _FileSystemState:
370
292
  @pulumi.getter
371
293
  def capacity(self) -> Optional[pulumi.Input[int]]:
372
294
  """
373
- The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
295
+ The capacity of the file system. The `capacity` is required when the `file_system_type` is `extreme`.
296
+ Unit: gib; **Note**: The minimum value is 100.
374
297
  """
375
298
  return pulumi.get(self, "capacity")
376
299
 
@@ -378,23 +301,11 @@ class _FileSystemState:
378
301
  def capacity(self, value: Optional[pulumi.Input[int]]):
379
302
  pulumi.set(self, "capacity", value)
380
303
 
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
-
393
304
  @property
394
305
  @pulumi.getter
395
306
  def description(self) -> Optional[pulumi.Input[str]]:
396
307
  """
397
- The description of the file system.
308
+ The File System description.
398
309
  """
399
310
  return pulumi.get(self, "description")
400
311
 
@@ -406,7 +317,8 @@ class _FileSystemState:
406
317
  @pulumi.getter(name="encryptType")
407
318
  def encrypt_type(self) -> Optional[pulumi.Input[int]]:
408
319
  """
409
- Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
320
+ Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
321
+ * Valid values:
410
322
  """
411
323
  return pulumi.get(self, "encrypt_type")
412
324
 
@@ -418,7 +330,11 @@ class _FileSystemState:
418
330
  @pulumi.getter(name="fileSystemType")
419
331
  def file_system_type(self) -> Optional[pulumi.Input[str]]:
420
332
  """
421
- The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
333
+ the type of the file system.
334
+ Valid values:
335
+ `standard` (Default),
336
+ `extreme`,
337
+ `cpfs`.
422
338
  """
423
339
  return pulumi.get(self, "file_system_type")
424
340
 
@@ -430,7 +346,7 @@ class _FileSystemState:
430
346
  @pulumi.getter(name="kmsKeyId")
431
347
  def kms_key_id(self) -> Optional[pulumi.Input[str]]:
432
348
  """
433
- The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
349
+ The id of the KMS key. The `kms_key_id` is required when the `encrypt_type` is `2`.
434
350
  """
435
351
  return pulumi.get(self, "kms_key_id")
436
352
 
@@ -438,27 +354,15 @@ class _FileSystemState:
438
354
  def kms_key_id(self, value: Optional[pulumi.Input[str]]):
439
355
  pulumi.set(self, "kms_key_id", value)
440
356
 
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
-
454
357
  @property
455
358
  @pulumi.getter(name="protocolType")
456
359
  def protocol_type(self) -> Optional[pulumi.Input[str]]:
457
360
  """
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`.
361
+ The protocol type of the file system.
362
+ Valid values:
363
+ `NFS`,
364
+ `SMB` (Available when the `file_system_type` is `standard`),
365
+ `cpfs` (Available when the `file_system_type` is `cpfs`).
462
366
  """
463
367
  return pulumi.get(self, "protocol_type")
464
368
 
@@ -466,64 +370,14 @@ class _FileSystemState:
466
370
  def protocol_type(self, value: Optional[pulumi.Input[str]]):
467
371
  pulumi.set(self, "protocol_type", value)
468
372
 
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
-
518
373
  @property
519
374
  @pulumi.getter(name="storageType")
520
375
  def storage_type(self) -> Optional[pulumi.Input[str]]:
521
376
  """
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`.
377
+ The storage type of the file System.
378
+ * Valid values:
379
+ * `Performance` (Available when the `file_system_type` is `standard`)
380
+ * `Capacity` (Available when the `file_system_type` is `standard`)
527
381
  """
528
382
  return pulumi.get(self, "storage_type")
529
383
 
@@ -547,7 +401,7 @@ class _FileSystemState:
547
401
  @pulumi.getter(name="vpcId")
548
402
  def vpc_id(self) -> Optional[pulumi.Input[str]]:
549
403
  """
550
- The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
404
+ The id of the VPC. The `vpc_id` is required when the `file_system_type` is `cpfs`.
551
405
  """
552
406
  return pulumi.get(self, "vpc_id")
553
407
 
@@ -559,7 +413,7 @@ class _FileSystemState:
559
413
  @pulumi.getter(name="vswitchId")
560
414
  def vswitch_id(self) -> Optional[pulumi.Input[str]]:
561
415
  """
562
- The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
416
+ The id of the vSwitch. The `vswitch_id` is required when the `file_system_type` is `cpfs`.
563
417
  """
564
418
  return pulumi.get(self, "vswitch_id")
565
419
 
@@ -571,7 +425,7 @@ class _FileSystemState:
571
425
  @pulumi.getter(name="zoneId")
572
426
  def zone_id(self) -> Optional[pulumi.Input[str]]:
573
427
  """
574
- The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
428
+ The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. **Note:** By default, a qualified availability zone is randomly selected according to the `protocol_type` and `storage_type` configuration.
575
429
  """
576
430
  return pulumi.get(self, "zone_id")
577
431
 
@@ -590,11 +444,7 @@ class FileSystem(pulumi.CustomResource):
590
444
  encrypt_type: Optional[pulumi.Input[int]] = None,
591
445
  file_system_type: Optional[pulumi.Input[str]] = None,
592
446
  kms_key_id: Optional[pulumi.Input[str]] = None,
593
- nfs_acl: Optional[pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']]] = None,
594
447
  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,
598
448
  storage_type: Optional[pulumi.Input[str]] = None,
599
449
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
600
450
  vpc_id: Optional[pulumi.Input[str]] = None,
@@ -602,11 +452,13 @@ class FileSystem(pulumi.CustomResource):
602
452
  zone_id: Optional[pulumi.Input[str]] = None,
603
453
  __props__=None):
604
454
  """
605
- Provides a File Storage (NAS) File System resource.
455
+ Provides a Nas File System resource.
606
456
 
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).
457
+ 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.
608
458
 
609
- > **NOTE:** Available since v1.33.0.
459
+ For information about NAS file system and how to use it, see [Manage file systems](https://www.alibabacloud.com/help/doc-detail/27530.htm)
460
+
461
+ > **NOTE:** Available in v1.33.0+.
610
462
 
611
463
  ## Example Usage
612
464
 
@@ -616,108 +468,85 @@ class FileSystem(pulumi.CustomResource):
616
468
  import pulumi
617
469
  import pulumi_alicloud as alicloud
618
470
 
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",
471
+ example = alicloud.nas.get_zones(file_system_type="standard")
472
+ foo = alicloud.nas.FileSystem("foo",
625
473
  protocol_type="NFS",
626
- storage_type="Capacity",
627
- description=name,
474
+ storage_type="Performance",
475
+ description="terraform-example",
628
476
  encrypt_type=1,
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)
477
+ zone_id=example.zones[0].zone_id)
638
478
  ```
639
479
 
640
480
  ```python
641
481
  import pulumi
642
482
  import pulumi_alicloud as alicloud
643
483
 
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",
484
+ example = alicloud.nas.get_zones(file_system_type="extreme")
485
+ foo = alicloud.nas.FileSystem("foo",
486
+ file_system_type="extreme",
650
487
  protocol_type="NFS",
488
+ zone_id=example.zones[0].zone_id,
651
489
  storage_type="standard",
652
- capacity=100,
653
- description=name,
654
- encrypt_type=1,
655
- file_system_type="extreme",
656
- zone_id=default.zones[0].zone_id)
490
+ capacity=100)
657
491
  ```
658
492
 
659
493
  ```python
660
494
  import pulumi
661
495
  import pulumi_alicloud as alicloud
662
496
 
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,
497
+ example = alicloud.nas.get_zones(file_system_type="cpfs")
498
+ example_network = alicloud.vpc.Network("example",
499
+ vpc_name="terraform-example",
670
500
  cidr_block="172.17.3.0/24")
671
- default_switch = alicloud.vpc.Switch("default",
672
- vswitch_name=name,
501
+ example_switch = alicloud.vpc.Switch("example",
502
+ vswitch_name="terraform-example",
673
503
  cidr_block="172.17.3.0/24",
674
- vpc_id=default_network.id,
675
- zone_id=default.zones[1].zone_id)
676
- default_file_system = alicloud.nas.FileSystem("default",
504
+ vpc_id=example_network.id,
505
+ zone_id=example.zones[1].zone_id)
506
+ example_file_system = alicloud.nas.FileSystem("example",
677
507
  protocol_type="cpfs",
678
- storage_type="advance_100",
679
- capacity=5000,
680
- description=name,
508
+ storage_type="advance_200",
681
509
  file_system_type="cpfs",
682
- vswitch_id=default_switch.id,
683
- vpc_id=default_network.id,
684
- zone_id=default.zones[1].zone_id)
510
+ capacity=3600,
511
+ zone_id=example.zones[1].zone_id,
512
+ vpc_id=example_network.id,
513
+ vswitch_id=example_switch.id)
685
514
  ```
686
515
 
687
516
  ## Import
688
517
 
689
- File Storage (NAS) File System can be imported using the id, e.g.
518
+ Nas File System can be imported using the id, e.g.
690
519
 
691
520
  ```sh
692
- $ pulumi import alicloud:nas/fileSystem:FileSystem example <id>
521
+ $ pulumi import alicloud:nas/fileSystem:FileSystem foo 1337849c59
693
522
  ```
694
523
 
695
524
  :param str resource_name: The name of the resource.
696
525
  :param pulumi.ResourceOptions opts: Options for the resource.
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`.
526
+ :param pulumi.Input[int] capacity: The capacity of the file system. The `capacity` is required when the `file_system_type` is `extreme`.
527
+ Unit: gib; **Note**: The minimum value is 100.
528
+ :param pulumi.Input[str] description: The File System description.
529
+ :param pulumi.Input[int] encrypt_type: Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
530
+ * Valid values:
531
+ :param pulumi.Input[str] file_system_type: the type of the file system.
532
+ Valid values:
533
+ `standard` (Default),
534
+ `extreme`,
535
+ `cpfs`.
536
+ :param pulumi.Input[str] kms_key_id: The id of the KMS key. The `kms_key_id` is required when the `encrypt_type` is `2`.
537
+ :param pulumi.Input[str] protocol_type: The protocol type of the file system.
538
+ Valid values:
539
+ `NFS`,
540
+ `SMB` (Available when the `file_system_type` is `standard`),
541
+ `cpfs` (Available when the `file_system_type` is `cpfs`).
542
+ :param pulumi.Input[str] storage_type: The storage type of the file System.
543
+ * Valid values:
544
+ * `Performance` (Available when the `file_system_type` is `standard`)
545
+ * `Capacity` (Available when the `file_system_type` is `standard`)
717
546
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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.
547
+ :param pulumi.Input[str] vpc_id: The id of the VPC. The `vpc_id` is required when the `file_system_type` is `cpfs`.
548
+ :param pulumi.Input[str] vswitch_id: The id of the vSwitch. The `vswitch_id` is required when the `file_system_type` is `cpfs`.
549
+ :param pulumi.Input[str] zone_id: The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. **Note:** By default, a qualified availability zone is randomly selected according to the `protocol_type` and `storage_type` configuration.
721
550
  """
722
551
  ...
723
552
  @overload
@@ -726,11 +555,13 @@ class FileSystem(pulumi.CustomResource):
726
555
  args: FileSystemArgs,
727
556
  opts: Optional[pulumi.ResourceOptions] = None):
728
557
  """
729
- Provides a File Storage (NAS) File System resource.
558
+ Provides a Nas File System resource.
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.
730
561
 
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).
562
+ For information about NAS file system and how to use it, see [Manage file systems](https://www.alibabacloud.com/help/doc-detail/27530.htm)
732
563
 
733
- > **NOTE:** Available since v1.33.0.
564
+ > **NOTE:** Available in v1.33.0+.
734
565
 
735
566
  ## Example Usage
736
567
 
@@ -740,80 +571,57 @@ class FileSystem(pulumi.CustomResource):
740
571
  import pulumi
741
572
  import pulumi_alicloud as alicloud
742
573
 
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",
574
+ example = alicloud.nas.get_zones(file_system_type="standard")
575
+ foo = alicloud.nas.FileSystem("foo",
749
576
  protocol_type="NFS",
750
- storage_type="Capacity",
751
- description=name,
577
+ storage_type="Performance",
578
+ description="terraform-example",
752
579
  encrypt_type=1,
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)
580
+ zone_id=example.zones[0].zone_id)
762
581
  ```
763
582
 
764
583
  ```python
765
584
  import pulumi
766
585
  import pulumi_alicloud as alicloud
767
586
 
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",
587
+ example = alicloud.nas.get_zones(file_system_type="extreme")
588
+ foo = alicloud.nas.FileSystem("foo",
589
+ file_system_type="extreme",
774
590
  protocol_type="NFS",
591
+ zone_id=example.zones[0].zone_id,
775
592
  storage_type="standard",
776
- capacity=100,
777
- description=name,
778
- encrypt_type=1,
779
- file_system_type="extreme",
780
- zone_id=default.zones[0].zone_id)
593
+ capacity=100)
781
594
  ```
782
595
 
783
596
  ```python
784
597
  import pulumi
785
598
  import pulumi_alicloud as alicloud
786
599
 
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,
600
+ example = alicloud.nas.get_zones(file_system_type="cpfs")
601
+ example_network = alicloud.vpc.Network("example",
602
+ vpc_name="terraform-example",
794
603
  cidr_block="172.17.3.0/24")
795
- default_switch = alicloud.vpc.Switch("default",
796
- vswitch_name=name,
604
+ example_switch = alicloud.vpc.Switch("example",
605
+ vswitch_name="terraform-example",
797
606
  cidr_block="172.17.3.0/24",
798
- vpc_id=default_network.id,
799
- zone_id=default.zones[1].zone_id)
800
- default_file_system = alicloud.nas.FileSystem("default",
607
+ vpc_id=example_network.id,
608
+ zone_id=example.zones[1].zone_id)
609
+ example_file_system = alicloud.nas.FileSystem("example",
801
610
  protocol_type="cpfs",
802
- storage_type="advance_100",
803
- capacity=5000,
804
- description=name,
611
+ storage_type="advance_200",
805
612
  file_system_type="cpfs",
806
- vswitch_id=default_switch.id,
807
- vpc_id=default_network.id,
808
- zone_id=default.zones[1].zone_id)
613
+ capacity=3600,
614
+ zone_id=example.zones[1].zone_id,
615
+ vpc_id=example_network.id,
616
+ vswitch_id=example_switch.id)
809
617
  ```
810
618
 
811
619
  ## Import
812
620
 
813
- File Storage (NAS) File System can be imported using the id, e.g.
621
+ Nas File System can be imported using the id, e.g.
814
622
 
815
623
  ```sh
816
- $ pulumi import alicloud:nas/fileSystem:FileSystem example <id>
624
+ $ pulumi import alicloud:nas/fileSystem:FileSystem foo 1337849c59
817
625
  ```
818
626
 
819
627
  :param str resource_name: The name of the resource.
@@ -836,11 +644,7 @@ class FileSystem(pulumi.CustomResource):
836
644
  encrypt_type: Optional[pulumi.Input[int]] = None,
837
645
  file_system_type: Optional[pulumi.Input[str]] = None,
838
646
  kms_key_id: Optional[pulumi.Input[str]] = None,
839
- nfs_acl: Optional[pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']]] = None,
840
647
  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,
844
648
  storage_type: Optional[pulumi.Input[str]] = None,
845
649
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
846
650
  vpc_id: Optional[pulumi.Input[str]] = None,
@@ -860,13 +664,9 @@ class FileSystem(pulumi.CustomResource):
860
664
  __props__.__dict__["encrypt_type"] = encrypt_type
861
665
  __props__.__dict__["file_system_type"] = file_system_type
862
666
  __props__.__dict__["kms_key_id"] = kms_key_id
863
- __props__.__dict__["nfs_acl"] = nfs_acl
864
667
  if protocol_type is None and not opts.urn:
865
668
  raise TypeError("Missing required property 'protocol_type'")
866
669
  __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
870
670
  if storage_type is None and not opts.urn:
871
671
  raise TypeError("Missing required property 'storage_type'")
872
672
  __props__.__dict__["storage_type"] = storage_type
@@ -874,8 +674,6 @@ class FileSystem(pulumi.CustomResource):
874
674
  __props__.__dict__["vpc_id"] = vpc_id
875
675
  __props__.__dict__["vswitch_id"] = vswitch_id
876
676
  __props__.__dict__["zone_id"] = zone_id
877
- __props__.__dict__["create_time"] = None
878
- __props__.__dict__["status"] = None
879
677
  super(FileSystem, __self__).__init__(
880
678
  'alicloud:nas/fileSystem:FileSystem',
881
679
  resource_name,
@@ -887,17 +685,11 @@ class FileSystem(pulumi.CustomResource):
887
685
  id: pulumi.Input[str],
888
686
  opts: Optional[pulumi.ResourceOptions] = None,
889
687
  capacity: Optional[pulumi.Input[int]] = None,
890
- create_time: Optional[pulumi.Input[str]] = None,
891
688
  description: Optional[pulumi.Input[str]] = None,
892
689
  encrypt_type: Optional[pulumi.Input[int]] = None,
893
690
  file_system_type: Optional[pulumi.Input[str]] = None,
894
691
  kms_key_id: Optional[pulumi.Input[str]] = None,
895
- nfs_acl: Optional[pulumi.Input[Union['FileSystemNfsAclArgs', 'FileSystemNfsAclArgsDict']]] = None,
896
692
  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,
901
693
  storage_type: Optional[pulumi.Input[str]] = None,
902
694
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
903
695
  vpc_id: Optional[pulumi.Input[str]] = None,
@@ -910,49 +702,41 @@ class FileSystem(pulumi.CustomResource):
910
702
  :param str resource_name: The unique name of the resulting resource.
911
703
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
912
704
  :param pulumi.ResourceOptions opts: Options for the resource.
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`.
705
+ :param pulumi.Input[int] capacity: The capacity of the file system. The `capacity` is required when the `file_system_type` is `extreme`.
706
+ Unit: gib; **Note**: The minimum value is 100.
707
+ :param pulumi.Input[str] description: The File System description.
708
+ :param pulumi.Input[int] encrypt_type: Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
709
+ * Valid values:
710
+ :param pulumi.Input[str] file_system_type: the type of the file system.
711
+ Valid values:
712
+ `standard` (Default),
713
+ `extreme`,
714
+ `cpfs`.
715
+ :param pulumi.Input[str] kms_key_id: The id of the KMS key. The `kms_key_id` is required when the `encrypt_type` is `2`.
716
+ :param pulumi.Input[str] protocol_type: The protocol type of the file system.
717
+ Valid values:
718
+ `NFS`,
719
+ `SMB` (Available when the `file_system_type` is `standard`),
720
+ `cpfs` (Available when the `file_system_type` is `cpfs`).
721
+ :param pulumi.Input[str] storage_type: The storage type of the file System.
722
+ * Valid values:
723
+ * `Performance` (Available when the `file_system_type` is `standard`)
724
+ * `Capacity` (Available when the `file_system_type` is `standard`)
935
725
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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.
726
+ :param pulumi.Input[str] vpc_id: The id of the VPC. The `vpc_id` is required when the `file_system_type` is `cpfs`.
727
+ :param pulumi.Input[str] vswitch_id: The id of the vSwitch. The `vswitch_id` is required when the `file_system_type` is `cpfs`.
728
+ :param pulumi.Input[str] zone_id: The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. **Note:** By default, a qualified availability zone is randomly selected according to the `protocol_type` and `storage_type` configuration.
939
729
  """
940
730
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
941
731
 
942
732
  __props__ = _FileSystemState.__new__(_FileSystemState)
943
733
 
944
734
  __props__.__dict__["capacity"] = capacity
945
- __props__.__dict__["create_time"] = create_time
946
735
  __props__.__dict__["description"] = description
947
736
  __props__.__dict__["encrypt_type"] = encrypt_type
948
737
  __props__.__dict__["file_system_type"] = file_system_type
949
738
  __props__.__dict__["kms_key_id"] = kms_key_id
950
- __props__.__dict__["nfs_acl"] = nfs_acl
951
739
  __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
956
740
  __props__.__dict__["storage_type"] = storage_type
957
741
  __props__.__dict__["tags"] = tags
958
742
  __props__.__dict__["vpc_id"] = vpc_id
@@ -964,23 +748,16 @@ class FileSystem(pulumi.CustomResource):
964
748
  @pulumi.getter
965
749
  def capacity(self) -> pulumi.Output[int]:
966
750
  """
967
- The capacity of the file system. Unit: GiB. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `capacity` must be set.
751
+ The capacity of the file system. The `capacity` is required when the `file_system_type` is `extreme`.
752
+ Unit: gib; **Note**: The minimum value is 100.
968
753
  """
969
754
  return pulumi.get(self, "capacity")
970
755
 
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
-
979
756
  @property
980
757
  @pulumi.getter
981
758
  def description(self) -> pulumi.Output[Optional[str]]:
982
759
  """
983
- The description of the file system.
760
+ The File System description.
984
761
  """
985
762
  return pulumi.get(self, "description")
986
763
 
@@ -988,15 +765,20 @@ class FileSystem(pulumi.CustomResource):
988
765
  @pulumi.getter(name="encryptType")
989
766
  def encrypt_type(self) -> pulumi.Output[Optional[int]]:
990
767
  """
991
- Specifies whether to encrypt data in the file system. Default value: `0`. Valid values:
768
+ Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
769
+ * Valid values:
992
770
  """
993
771
  return pulumi.get(self, "encrypt_type")
994
772
 
995
773
  @property
996
774
  @pulumi.getter(name="fileSystemType")
997
- def file_system_type(self) -> pulumi.Output[str]:
775
+ def file_system_type(self) -> pulumi.Output[Optional[str]]:
998
776
  """
999
- The type of the file system. Default value: `standard`. Valid values: `standard`, `extreme`, `cpfs`.
777
+ the type of the file system.
778
+ Valid values:
779
+ `standard` (Default),
780
+ `extreme`,
781
+ `cpfs`.
1000
782
  """
1001
783
  return pulumi.get(self, "file_system_type")
1002
784
 
@@ -1004,72 +786,30 @@ class FileSystem(pulumi.CustomResource):
1004
786
  @pulumi.getter(name="kmsKeyId")
1005
787
  def kms_key_id(self) -> pulumi.Output[str]:
1006
788
  """
1007
- The ID of the KMS-managed key. **Note:** If `encrypt_type` is set to `2`, `kms_key_id` must be set.
789
+ The id of the KMS key. The `kms_key_id` is required when the `encrypt_type` is `2`.
1008
790
  """
1009
791
  return pulumi.get(self, "kms_key_id")
1010
792
 
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
-
1020
793
  @property
1021
794
  @pulumi.getter(name="protocolType")
1022
795
  def protocol_type(self) -> pulumi.Output[str]:
1023
796
  """
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`.
797
+ The protocol type of the file system.
798
+ Valid values:
799
+ `NFS`,
800
+ `SMB` (Available when the `file_system_type` is `standard`),
801
+ `cpfs` (Available when the `file_system_type` is `cpfs`).
1028
802
  """
1029
803
  return pulumi.get(self, "protocol_type")
1030
804
 
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
-
1064
805
  @property
1065
806
  @pulumi.getter(name="storageType")
1066
807
  def storage_type(self) -> pulumi.Output[str]:
1067
808
  """
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`.
809
+ The storage type of the file System.
810
+ * Valid values:
811
+ * `Performance` (Available when the `file_system_type` is `standard`)
812
+ * `Capacity` (Available when the `file_system_type` is `standard`)
1073
813
  """
1074
814
  return pulumi.get(self, "storage_type")
1075
815
 
@@ -1085,7 +825,7 @@ class FileSystem(pulumi.CustomResource):
1085
825
  @pulumi.getter(name="vpcId")
1086
826
  def vpc_id(self) -> pulumi.Output[Optional[str]]:
1087
827
  """
1088
- The ID of the VPC. **NOTE:** `vpc_id` takes effect only if `file_system_type` is set to `cpfs`.
828
+ The id of the VPC. The `vpc_id` is required when the `file_system_type` is `cpfs`.
1089
829
  """
1090
830
  return pulumi.get(self, "vpc_id")
1091
831
 
@@ -1093,7 +833,7 @@ class FileSystem(pulumi.CustomResource):
1093
833
  @pulumi.getter(name="vswitchId")
1094
834
  def vswitch_id(self) -> pulumi.Output[Optional[str]]:
1095
835
  """
1096
- The ID of the vSwitch. **NOTE:** `vswitch_id` takes effect only if `file_system_type` is set to `cpfs`.
836
+ The id of the vSwitch. The `vswitch_id` is required when the `file_system_type` is `cpfs`.
1097
837
  """
1098
838
  return pulumi.get(self, "vswitch_id")
1099
839
 
@@ -1101,7 +841,7 @@ class FileSystem(pulumi.CustomResource):
1101
841
  @pulumi.getter(name="zoneId")
1102
842
  def zone_id(self) -> pulumi.Output[str]:
1103
843
  """
1104
- The ID of the zone. **Note:** If `file_system_type` is set to `extreme` or `cpfs`, `zone_id` must be set.
844
+ The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. **Note:** By default, a qualified availability zone is randomly selected according to the `protocol_type` and `storage_type` configuration.
1105
845
  """
1106
846
  return pulumi.get(self, "zone_id")
1107
847