ALIYUN::DFS::FileSystem crie um sistema de arquivos.
Sintaxe
{
"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
}
}
Propriedades
| Propriedade | Tipo | Obrigatório | Editável | Descrição | Restrição |
| SpaceCapacity | Integer | Sim | Sim | Capacidade estimada do sistema de arquivos. | Nenhuma. |
| Description | String | Não | Sim | Descrição do sistema de arquivos. | Nenhuma. |
| StorageType | String | Sim | Não | Tipo de meio de armazenamento. | Valores válidos:
|
| ZoneId | String | Sim | Não | ID da zona. | Nenhuma. |
| PartitionNumber | Integer | Não | Não | Propriedade reservada. | Nenhuma. |
| ProtocolType | String | Sim | Não | Tipo de protocolo. | Defina o valor como HDFS. |
| DataRedundancyType | String | Não | Não | Modo de redundância do sistema de arquivos. | Valor padrão: LRS. Valores válidos:
|
| FileSystemName | String | Não | Sim | Nome do sistema de arquivos. | O nome deve atender aos seguintes requisitos:
|
| ProvisionedThroughputInMiBps | Integer | Não | Sim | Throughput provisionado. | Unidade: MB/s. Valores válidos: 1 a 5120. |
| ThroughputMode | String | Não | Sim | Modo de throughput. | Valor padrão: Standard. Valores válidos:
|
| StorageSetName | String | Não | Não | Propriedade reservada. | Nenhuma. |
Valores de retorno
Fn::GetAtt
FileSystemId: ID do sistema de arquivos.
Exemplos
-
Formato
JSON{ "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" ] } } } } -
Formato
YAMLROSTemplateFormatVersion: '2015-09-01' Parameters: SpaceCapacity: Type: Number Description: |- Capacity of the file system. When the actual data volume reaches the file system capacity, data cannot be written. Unit: GB StorageType: Type: String Description: |- Type of storage media. Values: STANDARD (default) : standard type. PERFORMANCE: performance type. AllowedValues: - STANDARD - PERFORMANCE Default: STANDARD ZoneId: Type: String Description: zone id ProtocolType: Type: String Description: The protocol type. Only 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