ALIYUN::FC3::ConcurrencyConfig类型用于设置函数计算FC 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"
        }
      }
    }
  }
}
                        该文章对您有帮助吗?