ALIYUN::FC3::ConcurrencyConfig

更新时间:2025-02-12 01:38:48

ALIYUN::FC3::ConcurrencyConfig类型用于设置函数计算FC 3.0函数并发度。

语法

{
  "Type": "ALIYUN::FC3::ConcurrencyConfig",
  "Properties": {
    "FunctionName": String,
    "ReservedConcurrency": Integer
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

FunctionName

String

函数名称。

ReservedConcurrency

Integer

函数并发度配置信息。

预留并发,函数预留账号并发的一部分,其他函数不可以使用这部份并发。预留并发包括预留实例和按量实例的总并发。

返回值

Fn::GetAtt

示例

YAML
JSON
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"
        }
      }
    }
  }
}
                        
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等