ALIYUN::DFS::FileSystem is used to create a file system.
Syntax
{
"Type": "ALIYUN::DFS::FileSystem",
"Properties": {
"SpaceCapacity": Integer,
"Description": String,
"StorageType": String,
"ZoneId": String,
"PartitionNumber": Integer,
"ProtocolType": String,
"DataRedundancyType": String,
"FileSystemName": String,
"ProvisionedThroughputInMiBps": Integer,
"ThroughputMode": String,
"StorageSetName": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
SpaceCapacity | Integer | Yes | Yes | The estimated capacity of the file system. | None. |
Description | String | No | Yes | The description of the file system. | None. |
StorageType | String | Yes | No | The type of the storage medium. | Valid values:
|
ZoneId | String | Yes | No | The ID of the zone. | None. |
PartitionNumber | Integer | No | No | This property is reserved. | None. |
ProtocolType | String | Yes | No | The type of the protocol. | Set the value to HDFS. |
DataRedundancyType | String | No | No | The redundancy mode of the file system. | Default value: LRS. Valid values:
|
FileSystemName | String | No | Yes | The name of the file system. | The name must meet the following requirements:
|
ProvisionedThroughputInMiBps | Integer | No | Yes | The provisioned throughput. | Unit: MB/s. Valid values: 1 to 5120. |
ThroughputMode | String | No | Yes | The throughput mode. | Default value: Standard. Valid values:
|
StorageSetName | String | No | No | This property is reserved. | None. |
Return values
Fn::GetAtt
FileSystemId: the ID of the file system.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "SpaceCapacity": { "Type": "Number", "Description": "Capacity of the file system.\nWhen the actual data volume reaches the file system capacity, data cannot be written.\nUnit: GB" }, "StorageType": { "Type": "String", "Description": "Type of storage media.\nValues:\nSTANDARD (default) : standard type.\nPERFORMANCE: performance type.", "AllowedValues": [ "STANDARD", "PERFORMANCE" ], "Default": "STANDARD" }, "ZoneId": { "Type": "String", "Description": "zone id" }, "ProtocolType": { "Type": "String", "Description": The protocol type. Only Hadoop Distributed File System (HDFS) is supported", "AllowedValues": [ "HDFS" ] } }, "Resources": { "FileSystem": { "Type": "ALIYUN::DFS::FileSystem", "Properties": { "SpaceCapacity": { "Ref": "SpaceCapacity" }, "StorageType": { "Ref": "StorageType" }, "ZoneId": { "Ref": "ZoneId" }, "ProtocolType": { "Ref": "ProtocolType" } } } }, "Outputs": { "FileSystemId": { "Description": "The ID of the file system.", "Value": { "Fn::GetAtt": [ "FileSystem", "FileSystemId" ] } } } }