O recurso ALIYUN::FC3::ConcurrencyConfig configure a concorrência reservada de uma função no Function Compute 3.0.
Sintaxe
{
"Type": "ALIYUN::FC3::ConcurrencyConfig",
"Properties": {
"FunctionName": String,
"ReservedConcurrency": Integer
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
FunctionName |
String |
Sim |
Não |
Nome da função. |
Nenhuma. |
|
ReservedConcurrency |
Integer |
Sim |
Não |
Concorrência reservada da função. |
Outras funções da conta não podem usar essa concorrência reservada. O valor inclui a soma das concorrências de instâncias provisionadas e sob demanda. |
Valores de retorno
Fn::GetAtt
Nenhum.
Exemplos
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"
}
}
}
}
}