ALIYUN::DFS::AccessRule digunakan untuk membuat aturan dalam grup izin.
Sintaksis
{
"Type": "ALIYUN::DFS::AccessRule",
"Properties": {
"Description": String,
"Priority": Number,
"NetworkSegment": String,
"AccessGroupId": String,
"RWAccessType": String
}
}Properti
| Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
| Description | String | Tidak | Ya | Deskripsi dari aturan tersebut. | Tidak ada. |
| Priority | Number | Tidak | Ya | Prioritas dari aturan tersebut. | Jika objek yang diizinkan cocok dengan beberapa aturan, aturan dengan prioritas tertinggi akan berlaku. Nilai valid: 1 hingga 100. Nilai 1 menunjukkan prioritas tertinggi. |
| NetworkSegment | String | Ya | Ya | Alamat IP atau blok CIDR dari objek yang diizinkan. | Tidak ada. |
| AccessGroupId | String | Ya | Tidak | ID dari grup izin. | Tidak ada. |
| RWAccessType | String | Ya | Ya | Izin yang ingin Anda berikan kepada objek yang diizinkan untuk mengakses sistem file. | Nilai valid:
|
Nilai pengembalian
Fn::GetAtt
AccessRuleId: ID dari aturan.
Contoh
JSONFormat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "NetworkSegment": { "Type": "String", "Description": "The NetworkSegment of the Access Rule.", "MaxLength": 100 }, "AccessGroupId": { "Type": "String", "Description": "The resource ID of Access Group." }, "RWAccessType": { "Type": "String", "Description": "The read/write permission of the authorized object on the file system.\nValues:\nRDWR (default) : read and write.\nRDONLY: read-only", "AllowedValues": [ "RDWR", "RDONLY" ], "Default": "RDWR" } }, "Resources": { "AccessRule": { "Type": "ALIYUN::DFS::AccessRule", "Properties": { "NetworkSegment": { "Ref": "NetworkSegment" }, "AccessGroupId": { "Ref": "AccessGroupId" }, "RWAccessType": { "Ref": "RWAccessType" } } } }, "Outputs": { "AccessRuleId": { "Description": "The ID of the access_rule.", "Value": { "Fn::GetAtt": [ "AccessRule", "AccessRuleId" ] } } } }