ALIYUN::Flink::Instance digunakan untuk membuat instance Realtime Compute for Apache Flink, baik berlangganan maupun bayar sesuai pemakaian.
Sintaksis
{
"Type": "ALIYUN::Flink::Instance",
"Properties": {
"InstanceName": String,
"VpcId": String,
"ZoneId": String,
"Bucket": String,
"VSwitchIds": List,
"PricingCycle": String,
"ChargeType": String,
"AutoRenew": Boolean,
"PromotionCode": String,
"ResourceSpec": Map,
"Duration": Integer,
"UsePromotionCode": Boolean
}
}Properti
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Batasan |
InstanceName | String | Ya | Tidak | Nama dari instans. | Tidak ada. |
VpcId | String | Ya | Tidak | ID dari virtual private cloud (VPC). | Tidak ada. |
ZoneId | String | Ya | Tidak | ID zona tempat instans tersebut berada. | Tidak ada. |
Bucket | String | Ya | Tidak | Nama bucket. | Tidak ada. |
VSwitchIds | List | Ya | Tidak | ID vSwitch. | Tidak ada. |
PricingCycle | String | Tidak | Tidak | Unit durasi langganan. | Nilai yang valid:
|
ChargeType | String | Ya | Tidak | Metode penagihan instans. | Nilai yang valid:
|
AutoRenew | Boolean | Tidak | Tidak | Metode perpanjangan. | Nilai yang valid:
|
PromotionCode | String | Tidak | Tidak | Kode kupon. | Tidak ada. |
ResourceSpec | Map | Tidak | Ya | Spesifikasi sumber daya. | Untuk informasi lebih lanjut, lihat properti ResourceSpec. |
Duration | Integer | Tidak | Tidak | Durasi langganan. | Catatan Properti ini diperlukan jika Anda mengatur properti ChargeType ke PRE. |
UsePromotionCode | Boolean | Tidak | Tidak | Menentukan apakah akan menggunakan kode kupon. | Nilai yang valid:
|
Sintaksis ResourceSpec
"ResourceSpec": {
"Cpu": Integer,
"MemoryGB": Integer
}Properti ResourceSpec
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Batasan |
Cpu | Integer | Tidak | Ya | Jumlah vCPU. | Tidak ada. |
MemoryGB | Integer | Tidak | Ya | Ukuran memori. | Unit: GB. Catatan Nilai dari properti MemoryGB harus empat kali nilai dari properti Cpu. |
Nilai pengembalian
Fn::GetAtt
InstanceId: ID dari instans.
OrderId: ID dari pesanan.
WorkspaceId: ID dari ruang kerja.
Contoh
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceName:
Type: String
Description: Nama instans.
AllowedPattern: ^[a-z][a-z0-9-]{1,60}
VpcId:
Type: String
Description: ID VPC.
ZoneId:
Type: String
Description: ID area tersedia dari instans.
Bucket:
Type: String
Description: Nama bucket OSS.
VSwitchIds:
Type: CommaDelimitedList
Description: ID switch virtual.
ChargeType:
Type: String
Description: |-
Tipe pembayaran, nilai dari nilainya adalah sebagai berikut:
POST: bayar sesuai penggunaan.
PRE: langganan.
AllowedValues:
- PayAsYouGo
- PostPaid
- PayOnDemand
- Postpaid
- PostPay
- POST
- Subscription
- PrePaid
- PrePay
- Prepaid
- PRE
Resources:
Instance:
Type: ALIYUN::Flink::Instance
Properties:
InstanceName:
Ref: InstanceName
VpcId:
Ref: VpcId
ZoneId:
Ref: ZoneId
Bucket:
Ref: Bucket
VSwitchIds:
Ref: VSwitchIds
ChargeType:
Ref: ChargeType
Outputs:
InstanceId:
Description: ID Instans.
Value:
Fn::GetAtt:
- Instance
- InstanceId
OrderId:
Description: Informasi pesanan.
Value:
Fn::GetAtt:
- Instance
- OrderId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceName": {
"Type": "String",
"Description": "Nama instans.",
"AllowedPattern": "^[a-z][a-z0-9-]{1,60}"
},
"VpcId": {
"Type": "String",
"Description": "ID VPC."
},
"ZoneId": {
"Type": "String",
"Description": "ID area tersedia dari instans."
},
"Bucket": {
"Type": "String",
"Description": "Nama bucket OSS."
},
"VSwitchIds": {
"Type": "CommaDelimitedList",
"Description": "ID switch virtual."
},
"ChargeType": {
"Type": "String",
"Description": "Tipe pembayaran, nilai dari nilainya adalah sebagai berikut:\nPOST: bayar sesuai penggunaan.\nPRE: langganan.",
"AllowedValues": [
"PayAsYouGo",
"PostPaid",
"PayOnDemand",
"Postpaid",
"PostPay",
"POST",
"Subscription",
"PrePaid",
"PrePay",
"Prepaid",
"PRE"
]
}
},
"Resources": {
"Instance": {
"Type": "ALIYUN::Flink::Instance",
"Properties": {
"InstanceName": {
"Ref": "InstanceName"
},
"VpcId": {
"Ref": "VpcId"
},
"ZoneId": {
"Ref": "ZoneId"
},
"Bucket": {
"Ref": "Bucket"
},
"VSwitchIds": {
"Ref": "VSwitchIds"
},
"ChargeType": {
"Ref": "ChargeType"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "ID Instans.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
},
"OrderId": {
"Description": "Informasi pesanan.",
"Value": {
"Fn::GetAtt": [
"Instance",
"OrderId"
]
}
}
}
}