ALIYUN::SLS::RdsExternalStore は、ApsaraDB RDS for MySQL 外部ストアを作成するために使用されます。
構文
{
"Type": "ALIYUN::SLS::RdsExternalStore",
"Properties": {
"Db": String,
"ExternalStoreName": String,
"Host": String,
"Project": String,
"Port": Integer,
"Password": String,
"Region": String,
"StoreType": String,
"Table": String,
"Username": String,
"VpcId": String,
"InstanceId": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Db | String | はい | はい | ApsaraDB RDS for MySQL インスタンスのデータベース名。 | なし。 |
ExternalStoreName | String | はい | いいえ | 外部ストアの名前。 | なし。 |
Host | String | はい | はい | ApsaraDB RDS for MySQL インスタンスの非公開またはパブリックエンドポイント。 | なし。 |
Project | String | はい | いいえ | プロジェクト名。 | なし。 |
Port | Integer | はい | はい | ApsaraDB RDS for MySQL インスタンスの非公開またはパブリックポート。 | なし。 |
Password | String | はい | はい | ApsaraDB RDS for MySQL インスタンスにログインするために使用されるパスワード。 | なし。 |
Region | String | はい | はい | ApsaraDB RDS for MySQL インスタンスが存在するリージョン。 | 有効な値:
|
StoreType | String | はい | いいえ | ストレージタイプ。 | 値を rds-vpc に設定します。これは、仮想プライベートクラウド (VPC) 内の ApsaraDB RDS for MySQL インスタンス上に作成されたデータベースを指定します。 |
Table | String | はい | はい | ApsaraDB RDS for MySQL インスタンスのデータベーステーブルの名前。 | なし。 |
Username | String | はい | はい | ApsaraDB RDS for MySQL インスタンスにログインするために使用されるユーザー名。 | なし。 |
VpcId | String | はい | はい | ApsaraDB RDS for MySQL インスタンスが属する VPC の ID。 | なし。 |
InstanceId | String | いいえ | はい | ApsaraDB RDS for MySQL インスタンスの ID。 | なし。 |
戻り値
Fn::GetAtt
Project: プロジェクト名。
ExternalStoreName: 外部ストアの名前。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
StoreType:
Type: String
Description:
ja: ストレージタイプ。rds-vpc に設定します。これは、仮想プライベートクラウド (VPC) 内の ApsaraDB RDS for MySQL データベースを示します。
AllowedValues:
- rds-vpc
Required: true
Project:
Type: String
Description:
ja: プロジェクト名。
Required: true
Table:
Type: String
Description:
ja: ApsaraDB RDS for MySQL インスタンスのデータベーステーブルの名前。
Required: true
VpcId:
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Type: String
Description:
ja: ApsaraDB RDS for MySQL インスタンスが属する VPC の ID。
Required: true
Username:
Type: String
Description:
ja: ApsaraDB RDS for MySQL インスタンスにログインするために使用されるユーザー名。
Required: true
Port:
Type: Number
Description:
ja: ApsaraDB RDS for MySQL インスタンスの内部またはパブリックポート。
Required: true
Region:
Type: String
Description:
ja: 'ApsaraDB RDS for MySQL インスタンスが存在するリージョン。有効な値: cn-qingdao、cn-beijing、および cn-hangzhou。'
AllowedValues:
- cn-qingdao
- cn-beijing
- cn-hangzhou
Required: true
Host:
Type: String
Description:
ja: ApsaraDB RDS for MySQL インスタンスの内部またはパブリックエンドポイント。
Required: true
ExternalStoreName:
Type: String
Description:
ja: 外部ストアの名前。名前はプロジェクト内で一意であり、Logstore とは異なる必要があります。
Required: true
Db:
Type: String
Description:
ja: ApsaraDB RDS for MySQL インスタンスのデータベース名。
Required: true
Password:
Type: String
Description:
ja: ApsaraDB RDS for MySQL インスタンスにログインするために使用されるパスワード。
Required: true
Resources:
RdsExternalStore:
Type: ALIYUN::SLS::RdsExternalStore
Properties:
StoreType:
Ref: StoreType
Project:
Ref: Project
Table:
Ref: Table
VpcId:
Ref: VpcId
Username:
Ref: Username
Port:
Ref: Port
Region:
Ref: Region
Host:
Ref: Host
ExternalStoreName:
Ref: ExternalStoreName
Db:
Ref: Db
Password:
Ref: Password
Outputs:
Project:
Description: 外部ストアが属するプロジェクトの名前。
Value:
Fn::GetAtt:
- RdsExternalStore
- Project
ExternalStoreName:
Description: 外部ストアの名前。
Value:
Fn::GetAtt:
- RdsExternalStore
- ExternalStoreName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"StoreType": {
"Type": "String",
"Description": {
"ja": "ストレージタイプ。rds-vpc に設定します。これは、仮想プライベートクラウド (VPC) 内の ApsaraDB RDS for MySQL データベースを示します。"
},
"AllowedValues": [
"rds-vpc"
],
"Required": true
},
"Project": {
"Type": "String",
"Description": {
"ja": "プロジェクト名。"
},
"Required": true
},
"Table": {
"Type": "String",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスのデータベーステーブルの名前。"
},
"Required": true
},
"VpcId": {
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Type": "String",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスが属する VPC の ID。"
},
"Required": true
},
"Username": {
"Type": "String",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスにログインするために使用されるユーザー名。"
},
"Required": true
},
"Port": {
"Type": "Number",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスの内部またはパブリックポート。"
},
"Required": true
},
"Region": {
"Type": "String",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスが存在するリージョン。有効な値: cn-qingdao、cn-beijing、および cn-hangzhou。"
},
"AllowedValues": [
"cn-qingdao",
"cn-beijing",
"cn-hangzhou"
],
"Required": true
},
"Host": {
"Type": "String",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスの内部またはパブリックエンドポイント。"
},
"Required": true
},
"ExternalStoreName": {
"Type": "String",
"Description": {
"ja": "外部ストアの名前。名前はプロジェクト内で一意であり、Logstore とは異なる必要があります。"
},
"Required": true
},
"Db": {
"Type": "String",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスのデータベース名。"
},
"Required": true
},
"Password": {
"Type": "String",
"Description": {
"ja": "ApsaraDB RDS for MySQL インスタンスにログインするために使用されるパスワード。"
},
"Required": true
}
},
"Resources": {
"RdsExternalStore": {
"Type": "ALIYUN::SLS::RdsExternalStore",
"Properties": {
"StoreType": {
"Ref": "StoreType"
},
"Project": {
"Ref": "Project"
},
"Table": {
"Ref": "Table"
},
"VpcId": {
"Ref": "VpcId"
},
"Username": {
"Ref": "Username"
},
"Port": {
"Ref": "Port"
},
"Region": {
"Ref": "Region"
},
"Host": {
"Ref": "Host"
},
"ExternalStoreName": {
"Ref": "ExternalStoreName"
},
"Db": {
"Ref": "Db"
},
"Password": {
"Ref": "Password"
}
}
}
},
"Outputs": {
"Project": {
"Description": "外部ストアが属するプロジェクトの名前。",
"Value": {
"Fn::GetAtt": [
"RdsExternalStore",
"Project"
]
}
},
"ExternalStoreName": {
"Description": "外部ストアの名前。",
"Value": {
"Fn::GetAtt": [
"RdsExternalStore",
"ExternalStoreName"
]
}
}
}
}