ALIYUN::FOAS::Proyek digunakan untuk membuat proyek dalam kluster Realtime Compute.
Sintaks
{
"Type": "ALIYUN::FOAS::Project",
"Properties": {
"OrderId": String,
"DeployType": String,
"Description": String,
"ManagerIds": String,
"ClusterId": String,
"Name": String
}
}
Properti
| Nama | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Validitas |
| OrderId | String | Tidak | Tidak | ID dari instance mode dibagi. | Parameter ini hanya diperlukan ketika pengguna membuat proyek di kluster mode dibagi. |
| DeployType | String | Ya | Tidak | Jenis kluster. | Nilai yang valid:
|
| Description | String | Tidak | Tidak | Deskripsi proyek. | Tidak ada. |
| ManagerIds | String | Ya | Tidak | ID akun administrator. Pisahkan beberapa ID akun dengan koma (,). | Tidak ada. |
| ClusterId | String | Tidak | Tidak | ID kluster. | Tidak ada. |
| Name | String | Ya | Tidak | Nama proyek. | Nama harus terdiri dari 3 hingga 64 karakter, dan dapat berisi huruf kecil, angka, serta garis bawah (_). Harus dimulai dengan huruf. |
Parameter respons
Fn::GetAtt
State: Status proyek.
Contoh
JSON Format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"Project": {
"Type": "ALIYUN::FOAS::Project",
"Properties": {
"OrderId": {
"Ref": "OrderId"
},
"DeployType": {
"Ref": "DeployType"
},
"Description": {
"Ref": "Description"
},
"ManagerIds": {
"Ref": "ManagerIds"
},
"ClusterId": {
"Ref": "ClusterId"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Parameters": {
"OrderId": {
"MinLength": 1,
"Type": "String",
"Description": "Order Id of Shared cluster."
},
"DeployType": {
"Type": "String",
"Description": "Cluster type: Exclusive cluster: cell. Shared cluster: public",
"AllowedValues": [
"cell",
"public"
]
},
"Description": {
"MinLength": 1,
"Type": "String",
"Description": "Deskripsi Proyek."
},
"ManagerIds": {
"MinLength": 1,
"Type": "String",
"Description": "Daftar ID akun manajer yang dipisahkan dengan koma."
},
"ClusterId": {
"MinLength": 1,
"Type": "String",
"Description": "ID Kluster."
},
"Name": {
"AllowedPattern": "[a-z][a-z0-9_]{2,63}",
"Type": "String",
"Description": "Nama proyek. Dimulai dengan huruf, dan hanya mengandung huruf kecil bahasa Inggris, angka, garis bawah (_), serta dibatasi pada 3-64 karakter."
}
},
"Outputs": {
"State": {
"Description": "Status proyek.",
"Value": {
"Fn::GetAtt": [
"Project",
"State"
]
}
}
}
}
YAML Format
ROSTemplateFormatVersion: '2015-09-01'
Resources:
Project:
Type: ALIYUN::FOAS::Project
Properties:
OrderId:
Ref: OrderId
DeployType:
Ref: DeployType
Description:
Ref: Description
ManagerIds:
Ref: ManagerIds
ClusterId:
Ref: ClusterId
Name:
Ref: Name
Parameters:
OrderId:
MinLength: 1
Type: String
Description: Order Id of Shared cluster.
DeployType:
Type: String
Description: 'Cluster type: Exclusive cluster: cell. Shared cluster: public'
AllowedValues:
- cell
- public
Description:
MinLength: 1
Type: String
Description: Deskripsi Proyek.
ManagerIds:
MinLength: 1
Type: String
Description: Daftar ID akun manajer yang dipisahkan dengan koma.
ClusterId:
MinLength: 1
Type: String
Description: ID Kluster.
Name:
AllowedPattern: "[a-z][a-z0-9_]{2,63}"
Type: String
Description: Nama proyek. Dimulai dengan huruf, dan hanya mengandung huruf kecil bahasa Inggris, angka, garis bawah (_), serta dibatasi pada 3-64 karakter.
Outputs:
State:
Description: Status proyek.
Value:
Fn::GetAtt:
- Project
- State