Menerbitkan versi layanan Function Compute.
Syntax
{
"Type": "ALIYUN::FC::Version",
"Properties": {
"ServiceName": String,
"Description": String
}
}
Properties
| Property Name | Type | Required | Update allowed | Description | Constraints |
| ServiceName | String | Yes | No | Nama layanan Function Compute (FC). | None |
| Description | String | No | No | Deskripsi versi. | None |
Return values
Fn::GetAtt
- VersionId: ID versi.
- ServiceName: Nama layanan FC.
Examples
-
JSONformat{ "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" ] } } } }