ALIYUN::FC3::FunctionVersion类型用于发布函数版本。
语法
{
"Type": "ALIYUN::FC3::FunctionVersion",
"Properties": {
"FunctionName": String,
"Description": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
FunctionName |
String |
是 |
否 |
函数名称。 |
无 |
|
Description |
String |
否 |
否 |
函数版本的描述。 |
无 |
返回值
Fn::GetAtt
-
FunctionName:函数名称。
-
Description:函数版本的描述。
-
CreateTime:资源的创建时间。
-
LastModifiedTime:更新时间。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FunctionName:
Type: String
Description:
en: Function Name.
Required: true
Description:
Type: String
AssociationProperty: TextArea
Description:
en: Description of the function version.
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::FC3::FunctionVersion
Properties:
FunctionName:
Ref: FunctionName
Description:
Ref: Description
Outputs:
FunctionName:
Description: Function Name.
Value:
Fn::GetAtt:
- ExtensionResource
- FunctionName
Description:
Description: Description of the function version.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
CreateTime:
Description: The creation time of the resource.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
LastModifiedTime:
Description: Update time.
Value:
Fn::GetAtt:
- ExtensionResource
- LastModifiedTime
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FunctionName": {
"Type": "String",
"Description": {
"en": "Function Name."
},
"Required": true
},
"Description": {
"Type": "String",
"AssociationProperty": "TextArea",
"Description": {
"en": "Description of the function version."
},
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::FC3::FunctionVersion",
"Properties": {
"FunctionName": {
"Ref": "FunctionName"
},
"Description": {
"Ref": "Description"
}
}
}
},
"Outputs": {
"FunctionName": {
"Description": "Function Name.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"FunctionName"
]
}
},
"Description": {
"Description": "Description of the function version.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"CreateTime": {
"Description": "The creation time of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"LastModifiedTime": {
"Description": "Update time.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"LastModifiedTime"
]
}
}
}
}
该文章对您有帮助吗?