ALIYUN::MSE::GatewayDomain

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

协议类型。

取值:

  • HTTP

  • HTTPS

CertIdentifier

String

证书 ID。

Http2

String

是否开启Http2。

取值:

  • open:开启Http2

  • close:关闭Http2

  • globalConfig:使用全局配置。

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"
        ]
      }
    }
  }
}