DATASOURCE::FC::Services は、サービスを照会するために使用されます。
構文
{
"Type": "DATASOURCE::FC::Services",
"Properties": {
"Prefix": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Prefix | String | いいえ | はい | 返されるサービス名のプレフィックス。 | 名前は Prefix の値で始まる必要があります。 たとえば、Prefix を a に設定すると、a で始まるサービス名が返されます。 |
RefreshOptions | String | いいえ | はい | スタックが更新されたときのデータソースリソースの更新ポリシー。 | 有効な値:
|
戻り値 (Fn::GetAtt)
Services:サービスの詳細。
ServiceNames:サービスの名前。
プロパティ | タイプ | 説明 | 制約 |
ServiceNames | List | サービスの名前。 | なし。 |
Services | List | サービスの詳細。 | なし。 |
ServiceName | String | サービス名。 | なし。 |
Description | String | サービスの説明。 | なし。 |
LogConfig | Map | ログ設定。 | 関数によって生成されたログは、指定された Logstore に書き込まれます。詳細については、「LogConfig」をご参照ください。 |
ServiceId | String | サービス ID。 | なし。 |
CreatedTime | String | サービスが作成された時刻。 | なし。 |
LastModifiedTime | String | サービスが最後に変更された時刻。 | なし。 |
VpcConfig | Map | 仮想プライベートクラウド (VPC) 設定。 | 関数は、指定された VPC にアクセスできます。詳細については、「VPCConfig」をご参照ください。 |
InternetAccess | Boolean | 関数がインターネットにアクセスできるかどうかを示します。 | 有効な値:
|
NasConfig | Map | ファイルストレージ NAS (NAS) ファイルシステムの設定。 | 関数は、指定された NAS ファイルシステムにアクセスできます。詳細については、「NASConfig」をご参照ください。 |
VendorConfig | Map | ベンダー設定。 | なし。 |
TracingConfig | Map | Managed Service for OpenTelemetry の設定。 | Function Compute が Managed Service for OpenTelemetry と統合されると、Function Compute でリクエストの期間を記録し、関数のコールドスタート時間を表示し、関数の Ausführungsdauer を記録できます。設定の詳細については、「TracingConfig」をご参照ください。 Managed Service for OpenTelemetry の詳細については、「概要」をご参照ください。 |
例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Prefix": {
"Type": "String",
"Description": "Qualified returned service names must be prefixed with Prefix. For example, if the Prefix is \"a\", the returned service names should be started with \"a\"." // 返されるサービス名は Prefix で始まる必要があります。たとえば、Prefix が「a」の場合、返されるサービス名は「a」で始まる必要があります。
}
},
"Resources": {
"Services": {
"Type": "DATASOURCE::FC::Services",
"Properties": {
"Prefix": {
"Ref": "Prefix"
}
}
}
},
"Outputs": {
"Services": {
"Description": "The list of services.", // サービスのリスト。
"Value": {
"Fn::GetAtt": [
"Services",
"Services"
]
}
},
"ServiceNames": {
"Description": "The list of service names.", // サービス名のリスト。
"Value": {
"Fn::GetAtt": [
"Services",
"ServiceNames"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Prefix:
Type: String
Description: Qualified returned service names must be prefixed with Prefix. For example, if the Prefix is "a", the returned service names should be started with "a". # 返されるサービス名は Prefix で始まる必要があります。たとえば、Prefix が「a」の場合、返されるサービス名は「a」で始まる必要があります。
Resources:
Services:
Type: DATASOURCE::FC::Services
Properties:
Prefix:
Ref: Prefix
Outputs:
Services:
Description: The list of services. # サービスのリスト。
Value:
Fn::GetAtt:
- Services
- Services
ServiceNames:
Description: The list of service names. # サービス名のリスト。
Value:
Fn::GetAtt:
- Services
- ServiceNames