DATASOURCE::FC::Aliases类型用于获取函数服务的别名列表。
语法
{
"Type": "DATASOURCE::FC::Aliases",
"Properties": {
"ServiceName": String,
"Prefix": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
ServiceName | String | 是 | 是 | 服务名称。 | 无 |
Prefix | String | 否 | 是 | 限定返回的资源名称。 | 名称必须以Prefix作为前缀。
例如:Prefix是a,则返回的资源名均以a开始。 |
返回数据(Fn::GetAtt)
- AliasNames:别名名称列表。
- Aliases:别名详情列表。
属性名称 | 类型 | 描述 | 约束 |
---|---|---|---|
AliasNames | List | 别名名称列表。 | 无 |
Aliases | List | 别名详情列表。 | 无 |
AliasName | String | 别名名称。 | 无 |
Description | String | 别名描述。 | 无 |
CreatedTime | String | 别名创建时间。 | 无 |
LastModifiedTime | String | 别名上一次被更新的时间。 | 无 |
AdditionalVersionWeight | Map | 别名指向的灰度版本以及灰度权重。 |
由版本号和对应的权重组成。灰度版本只在调用函数时生效。 例如: {"Float":1} |
VersionId | String | 别名指向的版本。 | 无 |
示例
-
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "ServiceName": { "Type": "String", "Description": "Service name." } }, "Resources": { "Aliases": { "Type": "DATASOURCE::FC::Aliases", "Properties": { "ServiceName": { "Ref": "ServiceName" } } } }, "Outputs": { "AliasNames": { "Description": "The list of alias names.", "Value": { "Fn::GetAtt": [ "Aliases", "AliasNames" ] } }, "Aliases": { "Description": "The list of aliases.", "Value": { "Fn::GetAtt": [ "Aliases", "Aliases" ] } } } }