テンプレート名
ACS-FC-InvokeFunction
テンプレートの説明
関数を呼び出し、関数の実行結果を返します。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメータ
パラメータ | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
serviceName | サービス名。 | String | はい | ||
functionName | 関数名。 | String | はい | ||
regionId | リージョン ID。 | String | いいえ | {{ ACS::RegionId }} | |
parameters | 関数のパラメータ。 | String | いいえ | "" | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) がアシュームする RAM ロール。 | String | いいえ | "" |
出力パラメータ
パラメータ | 説明 | 種類 |
invokeData | String |
テンプレートの実行に必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"fc:InvokeFunction"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
詳細については、GitHub の ACS-FC-InvokeFunction.yml をご参照ください。
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
en: Invoke the function and return the result
name-en: ACS-FC-InvokeFunction
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
serviceName:
Label:
en: ServiceName
Type: String
AssociationProperty: ALIYUN::FC::Service::ServiceName
AssociationPropertyMetadata:
RegionId: regionId
functionName:
Label:
en: FunctionName
Type: String
AssociationProperty: ALIYUN::FC::Function::FunctionName
AssociationPropertyMetadata:
RegionId: regionId
ServiceName: serviceName
parameters:
Label:
en: Parameters
Type: String
Default: ''
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: invokeFunction
Action: ACS::FC::InvokeFunction
Description:
en: Invoke the function
Properties:
functionName: '{{ functionName }}'
serviceName: '{{ serviceName }}'
invocationType: Sync
regionId: '{{ regionId }}'
event: '{{ parameters }}'
Outputs:
invokeData:
Type: String
ValueSelector: data
Outputs:
invokeData:
Type: String
Value: '{{ invokeFunction.invokeData }}'