ALIYUN::FC3::ConcurrencyConfig は、Function Compute 3.0 で関数の予約済み同時実行数を設定するために使用されます。
構文
{
"Type": "ALIYUN::FC3::ConcurrencyConfig",
"Properties": {
"FunctionName": String,
"ReservedConcurrency": Integer
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
FunctionName | String | はい | いいえ | 関数の名前。 | なし。 |
ReservedConcurrency | Integer | はい | いいえ | 関数の予約済み同時実行数。 | アカウント内の他の関数は、予約済み同時実行数を使用できません。予約済み同時実行数には、プロビジョニングされたインスタンスとオンデマンドインスタンスの合計同時実行数が含まれます。 |
戻り値
Fn::GetAtt
なし。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FunctionName:
Type: String
Description:
en: Function name.
Required: true
ReservedConcurrency:
Type: Number
Description:
en: To reserve concurrency, functions reserve a portion of account concurrency that cannot be used by other functions. Reserved concurrency includes the total concurrency of reserved instances and instances by volume.
Required: true
MaxValue: 300
Resources:
ConcurrencyConfig:
Type: ALIYUN::FC3::ConcurrencyConfig
Properties:
FunctionName:
Ref: FunctionName
ReservedConcurrency:
Ref: ReservedConcurrency
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FunctionName": {
"Type": "String",
"Description": {
"en": "Function name."
},
"Required": true
},
"ReservedConcurrency": {
"Type": "Number",
"Description": {
"en": "To reserve concurrency, functions reserve a portion of account concurrency that cannot be used by other functions. Reserved concurrency includes the total concurrency of reserved instances and instances by volume."
},
"Required": true,
"MaxValue": 300
}
},
"Resources": {
"ConcurrencyConfig": {
"Type": "ALIYUN::FC3::ConcurrencyConfig",
"Properties": {
"FunctionName": {
"Ref": "FunctionName"
},
"ReservedConcurrency": {
"Ref": "ReservedConcurrency"
}
}
}
}
}