ALIYUN::FC::Alias is used to create an Alias.

Syntax

{
  "Type": "ALIYUN::FC::Alias",
  "Properties": {
    "Description": String,
    "VersionId": String,
    "ServiceName": String,
    "AliasName": String,
    "AdditionalVersion": String,
    "AdditionalWeight": Integer
  }
}

Properties

Parameter Type Required Editable Description Constraint
Description String Not supported Supported The description of the alias. The description must be 1 to 256 characters in length.
VersionId String Not supported Supported The ID of the version. None
ServiceName String Yes Not supported Service name None
AliasName String Yes Yes Alias It must be 1 to 128 characters in length and can start with a letter or underscore (_).
AdditionalVersion String Not supported Supported Canary version The version cannot be the same as the primary key version.
AdditionalWeight Integer Not supported Supported Canary version weight Valid values: 0 to 100.

Return value

Fn::GetAtt

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

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Description: Test FC Alias
    Parameters: {}
    Resources:
      Alias:
        Type: ALIYUN::FC::Alias
        Properties:
          ServiceName: mytest
          AliasName: TEST
    Outputs: {}
  • JSONformat

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Description": "Test FC Alias",
      "Parameters": {
      },
      "Resources": {
        "Alias": {
          "Type": "ALIYUN::FC::Alias",
          "Properties": {
            "ServiceName": "mytest",
            "AliasName": "TEST"
          }
        }
      },
      "Outputs": {
      }
    }