ALIYUN::Flink::Instance は、サブスクリプションまたは従量課金制の Realtime Compute for Apache Flink インスタンスを作成するために使用されます。
構文
{
"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
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
InstanceName | String | はい | いいえ | インスタンスの名前。 | なし。 |
VpcId | String | はい | いいえ | 仮想プライベートクラウド (VPC) の ID。 | なし。 |
ZoneId | String | はい | いいえ | インスタンスが属するゾーンの ID。 | なし。 |
Bucket | String | はい | いいえ | バケットの名前。 | なし。 |
VSwitchIds | List | はい | いいえ | vSwitch の ID。 | なし。 |
PricingCycle | String | いいえ | いいえ | サブスクリプション期間の単位。 | 有効な値:
|
ChargeType | String | はい | いいえ | インスタンスの課金方法。 | 有効な値:
|
AutoRenew | Boolean | いいえ | いいえ | 更新方法。 | 有効な値:
|
PromotionCode | String | いいえ | いいえ | クーポンコード。 | なし。 |
ResourceSpec | Map | いいえ | はい | リソース仕様。 | 詳細については、「ResourceSpec プロパティ」をご参照ください。 |
Duration | Integer | いいえ | いいえ | サブスクリプションの期間。 | 説明 ChargeType プロパティを PRE に設定した場合、このプロパティは必須です。 |
UsePromotionCode | Boolean | いいえ | いいえ | クーポンコードを使用するかどうかを指定します。 | 有効な値:
|
ResourceSpec 構文
"ResourceSpec": {
"Cpu": Integer,
"MemoryGB": Integer
}ResourceSpec プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Cpu | Integer | いいえ | はい | vCPU の数。 | なし。 |
MemoryGB | Integer | いいえ | はい | メモリサイズ。 | 単位: GB。 説明 MemoryGB プロパティの値は、Cpu プロパティの値の 4 倍である必要があります。 |
戻り値
Fn::GetAtt
InstanceId: インスタンスの ID。
OrderId: 注文の ID。
WorkspaceId: ワークスペースの ID。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceName:
Type: String
Description: The name of instance. // インスタンスの名前
AllowedPattern: ^[a-z][a-z0-9-]{1,60}
VpcId:
Type: String
Description: VPC ID. // VPC ID
ZoneId:
Type: String
Description: The available area ID of the instance. // インスタンスの利用可能エリア ID
Bucket:
Type: String
Description: OSS bucket name. // OSS バケット名
VSwitchIds:
Type: CommaDelimitedList
Description: Virtual switch ID. // 仮想スイッチ ID
ChargeType:
Type: String
Description: |-
The payment type, the value of the value is as follows: // 支払いタイプ。値は次のとおりです。
POST: pay as you go. // 従量課金
PRE: subscription. // サブスクリプション
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: Instance ID. // インスタンス ID
Value:
Fn::GetAtt:
- Instance
- InstanceId
OrderId:
Description: Order information. // 注文情報
Value:
Fn::GetAtt:
- Instance
- OrderId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceName": {
"Type": "String",
"Description": "The name of instance.", // インスタンスの名前
"AllowedPattern": "^[a-z][a-z0-9-]{1,60}"
},
"VpcId": {
"Type": "String",
"Description": "VPC ID." // VPC ID
},
"ZoneId": {
"Type": "String",
"Description": "The available area ID of the instance." // インスタンスの利用可能エリア ID
},
"Bucket": {
"Type": "String",
"Description": "OSS bucket name." // OSS バケット名
},
"VSwitchIds": {
"Type": "CommaDelimitedList",
"Description": "Virtual switch ID." // 仮想スイッチ ID
},
"ChargeType": {
"Type": "String",
"Description": "The payment type, the value of the value is as follows:\nPOST: pay as you go.\nPRE: subscription.", // 支払いタイプ。値は次のとおりです。\nPOST: 従量課金\nPRE: サブスクリプション
"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": "Instance ID.", // インスタンス ID
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
},
"OrderId": {
"Description": "Order information.", // 注文情報
"Value": {
"Fn::GetAtt": [
"Instance",
"OrderId"
]
}
}
}
}