ALIYUN::MSE::GatewayDomain类型用于添加网关关联域名。
语法
{
"Type": "ALIYUN::MSE::GatewayDomain",
"Properties": {
"GatewayUniqueId": String,
"Name": String,
"Protocol": String,
"CertIdentifier": String,
"Http2": String,
"MustHttps": Boolean,
"TlsMax": String,
"TlsMin": String,
"TlsCipherSuitesConfigJSON": Map
}
}属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
GatewayUniqueId | String | 是 | 否 | 网关唯一标识 ID。 | 无 |
Name | String | 是 | 否 | 域名名称。 | 无 |
Protocol | String | 是 | 否 | 协议类型。 | 取值:
|
CertIdentifier | String | 否 | 否 | 证书 ID。 | 无 |
Http2 | String | 否 | 否 | 是否开启Http2。 | 取值:
|
MustHttps | Boolean | 否 | 否 | 是否开启 HTTPS。 | 无 |
TlsMax | String | 否 | 否 | Tls 最大版本。 | 无 |
TlsMin | String | 否 | 否 | Tls 最小版本。 | 无 |
TlsCipherSuitesConfigJSON | Map | 否 | 否 | TLS 加密套件配置。 | 更多信息,请参考TlsCipherSuitesConfigJSON属性。 |
TlsCipherSuitesConfigJSON语法
"TlsCipherSuitesConfigJSON": {
"TlsCipherSuites": List,
"ConfigType": String
}TlsCipherSuitesConfigJSON属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ConfigType | String | 否 | 否 | 加密套件配置类型。 | 无 |
TlsCipherSuites | List | 否 | 否 | 加密套件名称列表。 | 无 |
返回值
Fn::GetAtt
DomainId:域名ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GatewayUniqueId:
Type: String
Description:
en: The unique identifier of the gateway.
Required: true
Protocol:
Type: String
Description:
en: 'The protocol type: HTTP, HTTPS.'
AllowedValues:
- HTTP
- HTTPS
Required: true
Name:
Type: String
Description:
en: The domain name.
Required: true
Resources:
GatewayDomain:
Type: ALIYUN::MSE::GatewayDomain
Properties:
GatewayUniqueId:
Ref: GatewayUniqueId
Protocol:
Ref: Protocol
Name:
Ref: Name
Outputs:
DomainId:
Description: The ID of the domain.
Value:
Fn::GetAtt:
- GatewayDomain
- DomainId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GatewayUniqueId": {
"Type": "String",
"Description": {
"en": "The unique identifier of the gateway."
},
"Required": true
},
"Protocol": {
"Type": "String",
"Description": {
"en": "The protocol type: HTTP, HTTPS."
},
"AllowedValues": [
"HTTP",
"HTTPS"
],
"Required": true
},
"Name": {
"Type": "String",
"Description": {
"en": "The domain name."
},
"Required": true
}
},
"Resources": {
"GatewayDomain": {
"Type": "ALIYUN::MSE::GatewayDomain",
"Properties": {
"GatewayUniqueId": {
"Ref": "GatewayUniqueId"
},
"Protocol": {
"Ref": "Protocol"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"DomainId": {
"Description": "The ID of the domain.",
"Value": {
"Fn::GetAtt": [
"GatewayDomain",
"DomainId"
]
}
}
}
}
该文章对您有帮助吗?