ALIYUN::DLF::Catalog

更新时间:
复制 MD 格式

The ALIYUN::DLF::Catalog resource creates a data catalog for a data lake.

Syntax

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

Properties

Property nameTypeRequiredUpdate allowedDescriptionConstraints
OwnerStringNoYesUser information.None
LocationUriStringNoYesLocation details.Example: /hdfs/hivedb/data.
DescriptionStringNoYesThe catalog description.None
CatalogIdStringYesNoThe namespace of the data catalog.The default value is your Alibaba Cloud account ID.

Return values

Fn::GetAtt

CatalogId: The namespace of the database classification.

Examples

  • JSON format

    {
      "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 format

    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