ALIYUN::FC::Version is used to release a Version.

Syntax

{
  "Type": "ALIYUN::FC::Version",
  "Properties": {
    "ServiceName": String,
    "Description": String
  }
}

Properties

Parameter Type Required Editable Description Constraint
ServiceName String Yes Not supported Service name None
Description String No Released Version description None

Return value

Fn::GetAtt

  • Version ID: The version ID.
  • ServiceName: The name of the function Compute Service.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Version": {
      "Type": "ALIYUN::FC::Version",
      "Properties": {
        "ServiceName": {
          "Ref": "ServiceName"
        },
        "Description": {
          "Ref": "Description"
        }
      }
    }
  },
  "Parameters": {
    "ServiceName": {
      "MinLength": 1,
      "Type": "String",
      "Description": "Service name",
      "MaxLength": 128
    },
    "Description": {
      "Type": "String",
      "Description": "Version description"
    }
  },
  "Outputs": {
    "VersionId": {
      "Description": "The version ID",
      "Value": {
        "Fn::GetAtt": [
          "Version",
          "VersionId"
        ]
      }
    },
    "ServiceName": {
      "Description": "The service name",
      "Value": {
        "Fn::GetAtt": [
          "Version",
          "ServiceName"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  Version:
    Type: 'ALIYUN::FC::Version'
    Properties:
      ServiceName:
        Ref: ServiceName
      Description:
        Ref: Description
Parameters:
  ServiceName:
    MinLength: 1
    Type: String
    Description: Service name
    MaxLength: 128
  Description:
    Type: String
    Description: Version description
Outputs:
  VersionId:
    Description: The version ID
    Value:
      'Fn::GetAtt':
        -Version
        -VersionId
  ServiceName:
    Description: The service name
    Value:
      'Fn::GetAtt':
        -Version
        -ServiceName