DATASOURCE::MSE::Clusters は、Microservices Registry クラスタをクエリするために使用されます。
構文
{
"Type": "DATASOURCE::MSE::Clusters",
"Properties": {
"ClusterAliasName": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ClusterAliasName | String | いいえ | はい | クラスタ名。 | あいまい一致がサポートされています。 |
RefreshOptions | String | いいえ | はい | スタックが更新されたときのデータソースリソースの更新ポリシー。 | 有効な値:
|
戻り値 (Fn::GetAtt)
ClusterIds: クラスタの ID。
Clusters: クラスタの詳細。
プロパティ | タイプ | 説明 | 制約 |
ClusterIds | List | クラスタの ID。 | なし。 |
Clusters | List | クラスタの詳細。 | なし。 |
ClusterId | String | クラスタ ID。 | なし。 |
ClusterName | String | クラスタ名。 | なし。 |
ClusterAliasName | String | クラスタのエイリアス。 | なし。 |
InstanceId | String | インスタンス ID。 | なし。 |
AppVersion | String | アプリケーションのバージョン。 | なし。 |
VersionCode | String | クラスタのバージョン。 | なし。 |
InstanceCount | Number | クラスタの数。 | なし。 |
IntranetAddress | String | プライベート IP アドレス。 | なし。 |
CanUpdate | Boolean | クラスタを更新できるかどうかを示します。 | 有効な値:
|
ChargeType | String | 課金方法。 | 有効な値:
|
InitStatus | String | クラスタの初期化ステータス。 | なし。 |
InternetAddress | String | パブリック IP アドレス。 | なし。 |
IntranetDomain | String | プライベートドメイン名。 | なし。 |
CreateTime | String | クラスタが作成された時刻。 | 時刻は、ISO 8601 標準の yyyy-MM-ddTHH:mm:ssZ 形式に従います。時刻は UTC で表示されます。 |
EndDate | String | クラスタの有効期限。 | 時刻は、ISO 8601 標準の yyyy-MM-ddTHH:mm:ssZ 形式に従います。時刻は UTC で表示されます。 |
例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ClusterAliasName": {
"Type": "String",
"Description": "The alias name of cluster." // クラスタのエイリアス名。
}
},
"Resources": {
"Clusters": {
"Type": "DATASOURCE::MSE::Clusters",
"Properties": {
"ClusterAliasName": {
"Ref": "ClusterAliasName"
}
}
}
},
"Outputs": {
"Clusters": {
"Description": "The list of clusters.", // クラスタのリスト。
"Value": {
"Fn::GetAtt": [
"Clusters",
"Clusters"
]
}
},
"ClusterIds": {
"Description": "The list of cluster IDs.", // クラスタ ID のリスト。
"Value": {
"Fn::GetAtt": [
"Clusters",
"ClusterIds"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ClusterAliasName:
Type: String
Description: The alias name of cluster. # クラスタのエイリアス名。
Resources:
Clusters:
Type: DATASOURCE::MSE::Clusters
Properties:
ClusterAliasName:
Ref: ClusterAliasName
Outputs:
Clusters:
Description: The list of clusters. # クラスタのリスト。
Value:
Fn::GetAtt:
- Clusters
- Clusters
ClusterIds:
Description: The list of cluster IDs. # クラスタ ID のリスト。
Value:
Fn::GetAtt:
- Clusters
- ClusterIds