ALIYUN::DRDS::DrdsInstance は、指定されたインスタンス仕様の PolarDB-X 1.0 インスタンスを作成するために使用されます。
構文
{
"Type": "ALIYUN::DRDS::DrdsInstance",
"Properties": {
"VpcId": String,
"Description": String,
"InstanceSeries": String,
"Specification": String,
"PayType": String,
"ZoneId": String,
"PricingCycle": String,
"Duration": Integer,
"VswitchId": String,
"IsAutoRenew": Boolean,
"Type": String,
"Tags": List,
"MySQLVersion": String,
"ResourceGroupId": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
VpcId | String | いいえ | いいえ | 仮想プライベートクラウド (VPC) の ID。 | VPC 内にデータベースを作成する場合は、このプロパティを指定する必要があります。 |
Description | String | はい | いいえ | インスタンスの説明。 | 説明は 2 ~ 128 文字である必要があります。 |
InstanceSeries | String | はい | いいえ | インスタンスタイプ。 | 有効な値:
|
Specification | String | はい | いいえ | インスタンスの仕様。インスタンスの仕様は、インスタンスタイプ、インスタンスの vCPU 数、およびメモリで構成されます。たとえば、drds.sn1.4c8g.8C16G は drds.sn1.4c8g と 8C16G で構成されます。 | インスタンスの仕様の詳細については、「 PolarDB-X 1.0 の 料金計算ツール タブもご参照ください。 |
ResourceGroupId | String | いいえ | はい | リソースグループの ID。 | なし。 |
PayType | String | はい | いいえ | 課金方法。 | 有効な値:
|
ZoneId | String | はい | いいえ | ゾーンの ID。 | ゾーンはリージョンに属します。たとえば、ID が cn-hangzhou-a のゾーンは、ID が cn-hangzhou のリージョンに属します。 |
PricingCycle | String | いいえ | いいえ | サブスクリプション期間の単位。 | 有効な値:
このプロパティは、PayType が drdsPre に設定されている場合に有効になります。 |
Duration | Integer | いいえ | いいえ | サブスクリプション期間。 | 有効な値:
このプロパティは、PayType が drdsPre に設定されている場合に有効になります。 |
VswitchId | String | いいえ | いいえ | vSwitch の ID。 | VPC 内にデータベースを作成する場合は、このプロパティを指定する必要があります。 |
IsAutoRenew | Boolean | いいえ | いいえ | 自動更新を有効にするかどうかを指定します。 | 有効な値:
PricingCycle が month に設定されている場合、サブスクリプションは 1 か月ごとに自動更新されます。 PricingCycle が year に設定されている場合、サブスクリプションは 1 年ごとに自動更新されます。 このプロパティは、PayType が drdsPre に設定されている場合に有効になります。 |
Type | String | はい | いいえ | インスタンスのタイプ。 | 有効な値:
|
MySQLVersion | String | いいえ | いいえ | MySQL プロトコルのバージョン。 | 有効な値:
説明 このプロパティは、プライマリインスタンスを作成する場合にのみ有効になります。デフォルトでは、読み取り専用インスタンスの MySQL プロトコルのバージョンは、プライマリインスタンスの MySQL プロトコルのバージョンと同じです。 |
Tags | List | いいえ | はい | タグ。 | 最大 20 個のタグを追加できます。 詳細については、「タグのプロパティ」をご参照ください。 |
タグの構文
"Tags": [
{
"Key": String,
"Value": String
}
] タグのプロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Key | String | はい | いいえ | タグのキー。 | キーは 1 ~ 128 文字である必要があり、 |
Value | String | いいえ | いいえ | タグの値。 | 値は最大 128 文字で、 |
戻り値
Fn::GetAtt
OrderId: 注文の ID。
DrdsInstanceId: インスタンスの ID。
IntranetEndpoint: プライベートエンドポイント。
InternetEndpoint: パブリックエンドポイント。
Arn: Alibaba Cloud リソースネーム (ARN)。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
ZoneId:
Type: String
AssociationProperty: ALIYUN::ECS::ZoneId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
RegionId: ${RegionId}
VpcId: ${VpcId}
Resources:
DrdsInstance:
Type: ALIYUN::DRDS::DrdsInstance
Properties:
Type: PRIVATE
VpcId:
Ref: VpcId
ZoneId:
Ref: ZoneId
InstanceSeries: drds.sn1.4c8g
Specification: drds.sn1.4c8g.8C16G
PayType: drdsPost
VswitchId:
Ref: VSwitchId
Outputs: {}{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::ZoneId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"VpcId": "${VpcId}"
}
}
},
"Resources": {
"DrdsInstance": {
"Type": "ALIYUN::DRDS::DrdsInstance",
"Properties": {
"Type": "PRIVATE",
"VpcId": {
"Ref": "VpcId"
},
"ZoneId": {
"Ref": "ZoneId"
},
"InstanceSeries": "drds.sn1.4c8g",
"Specification": "drds.sn1.4c8g.8C16G",
"PayType": "drdsPost",
"VswitchId": {
"Ref": "VSwitchId"
}
}
}
},
"Outputs": {
}
}