DATASOURCE::SAE::Applications は、アプリケーションを照会するために使用されます。
構文
{
"Type": "DATASOURCE::SAE::Applications",
"Properties": {
"NamespaceId": String,
"FieldValue": String,
"AppName": String,
"FieldType": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
NamespaceId | String | いいえ | はい | 名前空間 ID。 | なし。 |
FieldValue | String | いいえ | はい | アプリケーションをフィルタリングするために使用される条件。 アプリケーション名、アプリケーション ID、関連付けられているサーバーロードバランサー (SLB) インスタンスの IP アドレス、またはアプリケーションインスタンスの IP アドレスでアプリケーションを検索できます。 | なし。 |
AppName | String | いいえ | はい | アプリケーション名。 | なし。 |
FieldType | String | いいえ | はい | アプリケーションがフィルタリングされる基準となるディメンション。 | 有効な値:
|
RefreshOptions | String | いいえ | はい | スタックが更新されたときのデータソースリソースの更新ポリシー。 | 有効な値:
|
戻り値 (Fn::GetAtt)
Applications: アプリケーションの詳細。
ApplicationIds: アプリケーションの ID。
プロパティ | タイプ | 説明 | 制約 |
ApplicationIds | List | アプリケーションの ID。 | なし。 |
Applications | List | アプリケーションの詳細。 | なし。 |
AppId | String | アプリケーション ID。 | なし。 |
AppName | String | アプリケーション名。 | なし。 |
AppDescription | String | アプリケーションの説明。 | なし。 |
ScaleRuleEnabled | Boolean | 自動スケーリングが有効になっているかどうかを示します。 | 有効な値:
|
Instances | Number | アプリケーションインスタンスの数。 | なし。 |
RunningInstances | Number | 実行中のアプリケーションインスタンスの数。 | なし。 |
AppDeletingStatus | Boolean | アプリケーションが削除されているかどうかを示します。 | 有効な値:
|
RegionId | String | アプリケーションのリージョン ID。 | なし。 |
例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AppName": {
"Type": "String",
"Description": "アプリケーションの名前です。" // The name of application.
}
},
"Resources": {
"Applications": {
"Type": "DATASOURCE::SAE::Applications",
"Properties": {
"AppName": {
"Ref": "AppName"
}
}
}
},
"Outputs": {
"Applications": {
"Description": "アプリケーションのリストです。" // The list of applications.
"Value": {
"Fn::GetAtt": [
"Applications",
"Applications"
]
}
},
"ApplicationIds": {
"Description": "アプリケーション ID のリストです。" // The list of application IDs.
"Value": {
"Fn::GetAtt": [
"Applications",
"ApplicationIds"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AppName:
Type: String
Description: アプリケーションの名前です。 # The name of application.
Resources:
Applications:
Type: DATASOURCE::SAE::Applications
Properties:
AppName:
Ref: AppName
Outputs:
Applications:
Description: アプリケーションのリストです。 # The list of applications.
Value:
Fn::GetAtt:
- Applications
- Applications
ApplicationIds:
Description: アプリケーション ID のリストです。 # The list of application IDs.
Value:
Fn::GetAtt:
- Applications
- ApplicationIds