DATASOURCE::OTS::Instances は、Tablestore インスタンスをクエリするために使用されます。
構文
{
"Type": "DATASOURCE::OTS::Instances",
"Properties": {
"Status": String,
"InstanceName": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Status | String | いいえ | はい | インスタンスのステータス。 | なし。 |
InstanceName | String | いいえ | はい | インスタンス名。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックが更新されたときのデータソースリソースの更新ポリシー。 | 有効な値:
|
戻り値 (Fn::GetAtt)
Instances:インスタンスの詳細。
InstanceNames:インスタンスの名前。
プロパティ | タイプ | 説明 | 制約 |
InstanceNames | List | インスタンスの名前。 | なし。 |
Instances | List | インスタンスの詳細。 | なし。 |
InstanceName | String | インスタンス名。 | なし。 |
StorageType | String | ストレージタイプ。 | なし。 |
ResourceGroupId | String | リソースグループ ID。 | なし。 |
CreateTime | String | インスタンスが作成された時刻。 | なし。 |
TableQuota | Number | テーブルの総数。 | なし。 |
VCUQuota | Number | テーブルの最大数。 | なし。 |
InstanceSpecification | String | インスタンスタイプ。 | なし。 |
UserId | String | インスタンスを所有するユーザーの ID。 | なし。 |
InstanceStatus | String | インスタンスのステータス。 | なし。 |
AliasName | String | インスタンスのエイリアス。 | なし。 |
Network | String | インスタンスのネットワークタイプ。 | なし。 |
PaymentType | String | 支払い方法。 | なし。 |
InstanceDescription | String | インスタンスの説明。 | なし。 |
RegionId | String | リージョン ID。 | なし。 |
例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceName": {
"Type": "String",
"Description": "インスタンスの名前。" // Instance name
}
},
"Resources": {
"Instances": {
"Type": "DATASOURCE::OTS::Instances",
"Properties": {
"InstanceName": {
"Ref": "InstanceName"
}
}
}
},
"Outputs": {
"Instances": {
"Description": "インスタンスのリスト。", // The list of instances
"Value": {
"Fn::GetAtt": [
"Instances",
"Instances"
]
}
},
"InstanceNames": {
"Description": "インスタンス名のリスト。", // The list of instance names
"Value": {
"Fn::GetAtt": [
"Instances",
"InstanceNames"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceName:
Type: String
Description: インスタンスの名前。 # Instance name
Resources:
Instances:
Type: DATASOURCE::OTS::Instances
Properties:
InstanceName:
Ref: InstanceName
Outputs:
Instances:
Description: インスタンスのリスト。 # The list of instances
Value:
Fn::GetAtt:
- Instances
- Instances
InstanceNames:
Description: インスタンス名のリスト。 # The list of instance names
Value:
Fn::GetAtt:
- Instances
- InstanceNames