ALIYUN::FC::ProvisionConfig类型用于创建预留实例。

语法

{
  "Type": "ALIYUN::FC::ProvisionConfig",
  "Properties": {
    "ServiceName": String,
    "Target": Integer,
    "FunctionName": String,
    "Qualifier": String
  }
}

属性

属性名称类型必须允许更新描述约束
ServiceNameString服务名称
TargetInteger目标预留实例数
FunctionNameString函数名称
QualifierString服务别名

返回值

Fn::GetAtt

  • ServiceName:服务名称。
  • Resource:资源描述。
  • Target:目标预留实例数。
  • FunctionName:函数名称。
  • Qualifier:服务别名。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      ProvisionConfig:
        Type: ALIYUN::FC::ProvisionConfig
        Properties:
          ServiceName: TestFCService
          Target: 1
          FunctionName: TestFCFunction
          Qualifier: TestFCAlias
    Parameters: {}
    Outputs:
      ServiceName:
        Description: The service name
        Value:
          Fn::GetAtt:
            - ProvisionConfig
            - ServiceName
      Resource:
        Description: The resource
        Value:
          Fn::GetAtt:
            - ProvisionConfig
            - Resource
      Target:
        Description: Number of provision
        Value:
          Fn::GetAtt:
            - ProvisionConfig
            - Target
      Qualifier:
        Description: The service alias
        Value:
          Fn::GetAtt:
            - ProvisionConfig
            - Qualifier
      FunctionName:
        Description: The function name
        Value:
          Fn::GetAtt:
            - ProvisionConfig
            - FunctionName
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "ProvisionConfig": {
          "Type": "ALIYUN::FC::ProvisionConfig",
          "Properties": {
            "ServiceName": "TestFCService",
            "Target": 1,
            "FunctionName": "TestFCFunction",
            "Qualifier": "TestFCAlias"
          }
        }
      },
      "Parameters": {
      },
      "Outputs": {
        "ServiceName": {
          "Description": "The service name",
          "Value": {
            "Fn::GetAtt": [
              "ProvisionConfig",
              "ServiceName"
            ]
          }
        },
        "Resource": {
          "Description": "The resource",
          "Value": {
            "Fn::GetAtt": [
              "ProvisionConfig",
              "Resource"
            ]
          }
        },
        "Target": {
          "Description": "Number of provision",
          "Value": {
            "Fn::GetAtt": [
              "ProvisionConfig",
              "Target"
            ]
          }
        },
        "Qualifier": {
          "Description": "The service alias",
          "Value": {
            "Fn::GetAtt": [
              "ProvisionConfig",
              "Qualifier"
            ]
          }
        },
        "FunctionName": {
          "Description": "The function name",
          "Value": {
            "Fn::GetAtt": [
              "ProvisionConfig",
              "FunctionName"
            ]
          }
        }
      }
    }