ALIYUN::CDN::StagingConfig类型用于设置模拟环境下的加速域名配置。
语法
{
"Type": "ALIYUN::CDN::StagingConfig",
"Properties": {
"DomainName": String,
"Functions": List
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
DomainName |
String |
是 |
否 |
CDN的域名。 |
无 |
|
Functions |
List |
是 |
否 |
预发布配置的功能列表。 |
格式如下: 说明
示例:
|
返回值
Fn::GetAtt
-
FunctionName:功能名称。
-
ConfigId:配置ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DomainName:
Type: String
Description:
en: The domain name of the CDN.
zh: CDN的域名。
Required: true
Functions:
AssociationPropertyMetadata: {}
AssociationProperty: List[Parameters]
Type: Json
Description:
en: The functions of the staging config.
zh: 预发布配置的功能列表。
Required: true
Resources:
StagingConfig:
Type: ALIYUN::CDN::StagingConfig
Properties:
DomainName:
Ref: DomainName
Functions:
Ref: Functions
Outputs:
FunctionName:
Description:
en: The function name.
zh: 功能名称。
Value:
Fn::GetAtt:
- StagingConfig
- FunctionName
ConfigId:
Description:
en: The config id.
zh: 配置ID。
Value:
Fn::GetAtt:
- StagingConfig
- ConfigId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DomainName": {
"Type": "String",
"Description": {
"en": "The domain name of the CDN.",
"zh": "CDN的域名。"
},
"Required": true
},
"Functions": {
"AssociationPropertyMetadata": {},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "The functions of the staging config.",
"zh": "预发布配置的功能列表。"
},
"Required": true
}
},
"Resources": {
"StagingConfig": {
"Type": "ALIYUN::CDN::StagingConfig",
"Properties": {
"DomainName": {
"Ref": "DomainName"
},
"Functions": {
"Ref": "Functions"
}
}
}
},
"Outputs": {
"FunctionName": {
"Description": {
"en": "The function name.",
"zh": "功能名称。"
},
"Value": {
"Fn::GetAtt": [
"StagingConfig",
"FunctionName"
]
}
},
"ConfigId": {
"Description": {
"en": "The config id.",
"zh": "配置ID。"
},
"Value": {
"Fn::GetAtt": [
"StagingConfig",
"ConfigId"
]
}
}
}
}
该文章对您有帮助吗?