ALIYUN::ClickHouse::DBCluster は、ApsaraDB for ClickHouse クラスターを作成するために使用されます。
構文
{
"Type": "ALIYUN::ClickHouse::DBCluster",
"Properties": {
"DbNodeStorageType": String,
"DBNodeStorage": Integer,
"EncryptionType": String,
"Category": String,
"ZoneId": String,
"VSwitchId": String,
"DBClusterDescription": String,
"Period": String,
"EncryptionKey": String,
"DBClusterNetworkType": String,
"DBClusterType": String,
"VpcId": String,
"DBClusterVersion": String,
"DBNodeCount": Integer,
"UsedTime": Integer,
"PaymentType": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Category | String | はい | いいえ | クラスターのエディション。 | 有効な値:
|
DBClusterNetworkType | String | はい | いいえ | ネットワークタイプ。 | 値を VPC に設定します。この値は、仮想プライベートクラウド (VPC) を指定します。 |
DBClusterType | String | はい | はい | クラスターの仕様。 |
|
DBClusterVersion | String | はい | いいえ | クラスターのバージョン。 | 有効な値:
|
DBNodeCount | Integer | はい | はい | ノード数。 |
|
DBNodeStorage | Integer | はい | はい | ノードのストレージ容量。 | 有効な値: 100 ~ 10000。 単位: GB。 値は 100 GB 単位でなければなりません。 |
DbNodeStorageType | String | はい | いいえ | ノードのストレージタイプ。 | 有効な値:
|
PaymentType | String | はい | いいえ | 課金方式。 | 有効な値:
|
DBClusterDescription | String | いいえ | はい | クラスターの説明。 | なし。 |
EncryptionKey | String | いいえ | いいえ | Key Management Service (KMS) によって提供されるキーの ID。 | なし。 |
EncryptionType | String | いいえ | いいえ | 暗号化タイプ。 | 値を CloudDisk に設定します。CloudDisk の値は、クラスターにディスク暗号化が使用されることを指定します。 |
Period | String | いいえ | いいえ | クラスターのサブスクリプション期間の単位。 | 有効な値:
説明 PaymentType が Prepaid に設定されている場合は、このプロパティを指定する必要があります。 |
UsedTime | Integer | いいえ | いいえ | クラスターの使用期間。 |
|
VpcId | String | いいえ | いいえ | VPC ID。 | なし。 |
VSwitchId | String | いいえ | いいえ | vSwitch ID。 | なし。 |
ZoneId | String | いいえ | いいえ | ゾーン ID。 | DescribeRegions オペレーションを呼び出して、サポートされているゾーンを照会できます。 |
戻り値
Fn::GetAtt
DBClusterId: クラスター ID。
PublicPort: パブリックポート。
Bid: ビジネスプロセス ID。
LockReason: クラスターがロックされている理由。
LockMode: ロックモード。
DBClusterVersion: クラスターバージョン。
CommodityCode: 商品コード。
VpcId: VPC ID。
Engine: クラスターエンジン。
Category: クラスターのエディション。
DBClusterType: クラスターの仕様。
DBClusterNetworkType: ネットワークタイプ。
EncryptionType: 暗号化タイプ。
VpcCloudInstanceId: VPC タイプのクラスターの ID。
Port: クラスターへの接続に使用するポート番号。
PaymentType: 課金方式。
DBNodeStorage: ノードのストレージ容量。
PublicConnectionString: パブリックエンドポイント。
EngineVersion: エンジンバージョン。
IsExpired: クラスターの期限が切れているかどうかを示します。
VSwitchId: vSwitch ID。
Period: クラスターのサブスクリプション期間の単位。
StorageType: ストレージタイプ。
DBNodeCount: ノード数。
AliUid: Alibaba Cloud アカウントの ID。
DBClusterDescription: クラスターの説明。
ConnectionString: クラスターのエンドポイント。
ZoneId: ゾーン ID。
EncryptionKey: KMS によって提供されるキーの ID。
DbNodeStorageType: ノードのストレージタイプ。
DBNodeClass: ノードタイプ。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
ZoneId:
Type: String
AssociationProperty: ZoneId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
ZoneId: ${ZoneId}
VpcId: ${VpcId}
PaymentType:
Type: String
Description: 支払タイプ # Japanese translation for "PayType"
Default: Month
Resources:
ClickHouseDBCluster:
Type: ALIYUN::ClickHouse::DBCluster
Properties:
DbNodeStorageType: cloud_essd
DBNodeStorage: 100
Category: Basic
ZoneId:
Ref: ZoneId
VSwitchId:
Ref: VSwitchId
Period: Month
DBClusterNetworkType: VPC
DBClusterType: S8
VpcId:
Ref: VpcId
DBClusterVersion: 21.8.10.19
DBNodeCount: 3
UsedTime: 1
PaymentType: PrepaidJSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ZoneId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"ZoneId": "${ZoneId}",
"VpcId": "${VpcId}"
}
},
"PaymentType": {
"Type": "String",
"Description": "支払タイプ", // Japanese translation for "PayType"
"Default": "Month"
}
},
"Resources": {
"ClickHouseDBCluster": {
"Type": "ALIYUN::ClickHouse::DBCluster",
"Properties": {
"DbNodeStorageType": "cloud_essd",
"DBNodeStorage": 100,
"Category": "Basic",
"ZoneId": {
"Ref": "ZoneId"
},
"VSwitchId": {
"Ref": "VSwitchId"
},
"Period": "Month",
"DBClusterNetworkType": "VPC",
"DBClusterType": "S8",
"VpcId": {
"Ref": "VpcId"
},
"DBClusterVersion": "21.8.10.19",
"DBNodeCount": 3,
"UsedTime": 1,
"PaymentType": "Prepaid"
}
}
}
}