DATASOURCE::APIG::Domain类型用于查询域名。
语法
{
  "Type": "DATASOURCE::APIG::Domain",
  "Properties": {
    "DomainId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| DomainId | String | 是 | 是 | 域名 id。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值: 
 | 
返回值
Fn::GetAtt
- DomainId:域名 id。 
- TlsCipherSuitesConfig:加密套件配置。 
- ResourceGroupId:资源组 ID。 
- DomainName:域名。 
- ForceHttps:设置 HTTPS 协议类型,是否开启强制 HTTPS 跳转。 
- TlsMax:TLS 协议最大版本,最大支持 TLS 1.3。 
- CertIdentifier:证书标识。 
- TlsMin:TLS 协议最小版本,最小支持 TLS 1.0。 
- Http2Option:http2 设置。 
- Protocol:域名支持的协议类型。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainId:
    Type: String
    Description:
      en: The ID of the domain.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::APIG::Domain
    Properties:
      DomainId:
        Ref: DomainId
Outputs:
  DomainId:
    Description: The ID of the domain.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DomainId
  TlsCipherSuitesConfig:
    Description: The TLS cipher suite configurations.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TlsCipherSuitesConfig
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  DomainName:
    Description: The domain name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DomainName
  ForceHttps:
    Description: Set the HTTPS protocol type and whether to enable forced HTTPS redirection.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ForceHttps
  TlsMax:
    Description: The maximum version of the TLS protocol. The maximum version of the TLS protocol is 1.3.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TlsMax
  CertIdentifier:
    Description: The certificate ID.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CertIdentifier
  TlsMin:
    Description: The minimum version of the TLS protocol. The minimum version of the TLS protocol is 1.0.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TlsMin
  Http2Option:
    Description: The HTTP/2 configuration.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Http2Option
  Protocol:
    Description: The supported protocol.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Protocol
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the domain."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::APIG::Domain",
      "Properties": {
        "DomainId": {
          "Ref": "DomainId"
        }
      }
    }
  },
  "Outputs": {
    "DomainId": {
      "Description": "The ID of the domain.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainId"
        ]
      }
    },
    "TlsCipherSuitesConfig": {
      "Description": "The TLS cipher suite configurations.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TlsCipherSuitesConfig"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "DomainName": {
      "Description": "The domain name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainName"
        ]
      }
    },
    "ForceHttps": {
      "Description": "Set the HTTPS protocol type and whether to enable forced HTTPS redirection.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ForceHttps"
        ]
      }
    },
    "TlsMax": {
      "Description": "The maximum version of the TLS protocol. The maximum version of the TLS protocol is 1.3.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TlsMax"
        ]
      }
    },
    "CertIdentifier": {
      "Description": "The certificate ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CertIdentifier"
        ]
      }
    },
    "TlsMin": {
      "Description": "The minimum version of the TLS protocol. The minimum version of the TLS protocol is 1.0.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TlsMin"
        ]
      }
    },
    "Http2Option": {
      "Description": "The HTTP/2 configuration.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Http2Option"
        ]
      }
    },
    "Protocol": {
      "Description": "The supported protocol.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Protocol"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?