ALIYUN::DLF::Catalog类型用于创建数据湖数据目录。

语法

{
  "Type": "ALIYUN::DLF::Catalog",
  "Properties": {
    "Owner": String,
    "LocationUri": String,
    "Description": String,
    "CatalogId": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Owner String 用户信息。
LocationUri String 位置详情。 例如:/hdfs/hivedb/data
Description String Catalog描述。
CatalogId String 数据库分类命名空间。 默认使用阿里云账号ID。

返回值

Fn::GetAtt

CatalogId:数据库分类命名空间。

示例

  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "CatalogId": {
          "Type": "String",
          "Description": "Catalog ID",
          "AllowedPattern": "^[a-zA-Z][a-zA-Z0-9_]{1,255}"
        }
      },
      "Resources": {
        "Catalog": {
          "Type": "ALIYUN::DLF::Catalog",
          "Properties": {
            "CatalogId": {
              "Ref": "CatalogId"
            }
          }
        }
      },
      "Outputs": {
        "CatalogId": {
          "Description": "Catalog ID",
          "Value": {
            "Fn::GetAtt": [
              "Catalog",
              "CatalogId"
            ]
          }
        }
      }
    }
  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      CatalogId:
        AllowedPattern: ^[a-zA-Z][a-zA-Z0-9_]{1,255}
        Description: Catalog ID
        Type: String
    Resources:
      Catalog:
        Properties:
          CatalogId:
            Ref: CatalogId
        Type: ALIYUN::DLF::Catalog
    Outputs:
      CatalogId:
        Description: Catalog ID
        Value:
          Fn::GetAtt:
          - Catalog
          - CatalogId