DATASOURCE::CDN::Domain类型用于查询域名详情。
语法
{
"Type": "DATASOURCE::CDN::Domain",
"Properties": {
"DomainName": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
DomainName | String | 是 | 是 | 加速域名信息。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
ResourceGroupId:资源组ID。
Scope:加速区域。
DomainName:加速域名信息。
CertificateConfig:证书配置。
CdnType:加速域名的业务类型。
Sources:源站。
Cname:CNAME 域名。
Tags:域名绑定的标签信息。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DomainName:
Type: String
Description:
en: The accelerated domain name.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::CDN::Domain
Properties:
DomainName:
Ref: DomainName
Outputs:
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
Scope:
Description: The acceleration region.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Scope
DomainName:
Description: The accelerated domain name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DomainName
CertificateConfig:
Description: Certificate configuration.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CertificateConfig
CdnType:
Description: The workload type of the accelerated domain name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CdnType
Sources:
Description: The information about the origin server.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Sources
Cname:
Description: The CNAME that is assigned to the accelerated domain name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Cname
Tags:
Description: The tags of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DomainName": {
"Type": "String",
"Description": {
"en": "The accelerated domain name."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CDN::Domain",
"Properties": {
"DomainName": {
"Ref": "DomainName"
}
}
}
},
"Outputs": {
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"Scope": {
"Description": "The acceleration region.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Scope"
]
}
},
"DomainName": {
"Description": "The accelerated domain name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DomainName"
]
}
},
"CertificateConfig": {
"Description": "Certificate configuration.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CertificateConfig"
]
}
},
"CdnType": {
"Description": "The workload type of the accelerated domain name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CdnType"
]
}
},
"Sources": {
"Description": "The information about the origin server.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Sources"
]
}
},
"Cname": {
"Description": "The CNAME that is assigned to the accelerated domain name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Cname"
]
}
},
"Tags": {
"Description": "The tags of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}
文档内容是否对您有帮助?