All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::FC::Version

Last Updated:Jun 16, 2026

Publishes a version of a Function Compute service.

Syntax

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

Properties

Property Name Type Required Update allowed Description Constraints
ServiceName String Yes No The name of the Function Compute (FC) service. None
Description String No No The description of the version. None

Return values

Fn::GetAtt

  • VersionId: The ID of the version.
  • ServiceName: The name of the FC service.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      Version:
        Type: ALIYUN::FC::Version
        Properties:
          ServiceName: TestService
    Outputs:
      VersionId:
        Description: The version ID
        Value:
          Fn::GetAtt:
            - Version
            - VersionId
      ServiceName:
        Description: The service name
        Value:
          Fn::GetAtt:
            - Version
            - ServiceName
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "Version": {
          "Type": "ALIYUN::FC::Version",
          "Properties": {
            "ServiceName": "TestService"
          }
        }
      },
      "Outputs": {
        "VersionId": {
          "Description": "The version ID",
          "Value": {
            "Fn::GetAtt": [
              "Version",
              "VersionId"
            ]
          }
        },
        "ServiceName": {
          "Description": "The service name",
          "Value": {
            "Fn::GetAtt": [
              "Version",
              "ServiceName"
            ]
          }
        }
      }
    }